Skip to content

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

@kryton

Description

@kryton
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!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions