Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Filesystem copy should return error message, not error category #173

Open
kryton opened this issue Oct 30, 2020 · 0 comments
Open

Filesystem copy should return error message, not error category #173

kryton opened this issue Oct 30, 2020 · 0 comments

Comments

@kryton
Copy link

kryton commented Oct 30, 2020

diff --git a/src/filesystem.cpp b/src/filesystem.cpp
index 1b8df20..e643097 100644
--- a/src/filesystem.cpp
+++ b/src/filesystem.cpp
@@ -257,7 +257,7 @@ namespace fc {
      }
      if( ec ) {
         FC_THROW( "Copy from ${srcfile} to ${dstfile} failed because ${reason}",
-              ("srcfile",f)("dstfile",t)("reason", ec.category().name() ) );
+              ("srcfile",f)("dstfile",t)("reason", ec.message() ) );
      }
   }
   void resize_file( const path& f, size_t t )

(thx Steve!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant