fix import_key crash for wallet

This commit is contained in:
liukunyu 2018-05-24 15:46:07 +08:00 committed by abitmore
parent 1a457caf33
commit 1eca4959e7

View file

@ -241,7 +241,8 @@ namespace fc {
void remove_all( const path& p ) { boost::filesystem::remove_all(p); }
void copy( const path& f, const path& t ) {
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 ) {
FC_THROW( "Copy from ${srcfile} to ${dstfile} failed because ${reason}",
("srcfile",f)("dstfile",t)("reason",e.what() ) );