FC Updates from BitShares and myself #21
1 changed files with 5 additions and 0 deletions
|
|
@ -243,6 +243,11 @@ namespace fc {
|
||||||
try {
|
try {
|
||||||
boost::system::error_code ec;
|
boost::system::error_code ec;
|
||||||
boost::filesystem::copy( boost::filesystem::path(f), boost::filesystem::path(t), ec );
|
boost::filesystem::copy( boost::filesystem::path(f), boost::filesystem::path(t), ec );
|
||||||
|
if( ec )
|
||||||
|
{
|
||||||
|
FC_THROW( "Copy from ${srcfile} to ${dstfile} failed because ${reason}:${value}",
|
||||||
|
("srcfile",f)("dstfile",t)("reason",ec.category().name())("value",ec.value()) );
|
||||||
|
}
|
||||||
} 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