FC Updates from BitShares and myself #21
1 changed files with 2 additions and 1 deletions
|
|
@ -241,7 +241,8 @@ namespace fc {
|
||||||
void remove_all( const path& p ) { boost::filesystem::remove_all(p); }
|
void remove_all( const path& p ) { boost::filesystem::remove_all(p); }
|
||||||
void copy( const path& f, const path& t ) {
|
void copy( const path& f, const path& t ) {
|
||||||
try {
|
try {
|
||||||
boost::filesystem::copy( boost::filesystem::path(f), boost::filesystem::path(t) );
|
boost::system::error_code ec;
|
||||||
|
boost::filesystem::copy( boost::filesystem::path(f), boost::filesystem::path(t), ec );
|
||||||
} catch ( boost::system::system_error& e ) {
|
} catch ( boost::system::system_error& e ) {
|
||||||
FC_THROW( "Copy from ${srcfile} to ${dstfile} failed because ${reason}",
|
FC_THROW( "Copy from ${srcfile} to ${dstfile} failed because ${reason}",
|
||||||
("srcfile",f)("dstfile",t)("reason",e.what() ) );
|
("srcfile",f)("dstfile",t)("reason",e.what() ) );
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue