diff --git a/src/fs_find_mount_point.cpp b/src/fs_find_mount_point.cpp index 6a851e26..f0dd0074 100644 --- a/src/fs_find_mount_point.cpp +++ b/src/fs_find_mount_point.cpp @@ -22,7 +22,7 @@ fs::find_mount_point(const ghc::filesystem::path &path_) if(rv == -1) { ec.assign(errno,std::generic_category()); - return nonstd::make_unexpected(ec); + return nonstd::make_unexpected({errno,std::generic_category()}); } tmp_path = can_path;