diff --git a/src/fs_find_mount_point.cpp b/src/fs_find_mount_point.cpp index 22f3e1c8..8d65d471 100644 --- a/src/fs_find_mount_point.cpp +++ b/src/fs_find_mount_point.cpp @@ -16,7 +16,7 @@ fs::find_mount_point(const ghc::filesystem::path &path_) if(ec) can_path = ghc::filesystem::absolute(path_,ec); if(ec) - return ec; + return nonstd::make_unexpected(ec); rv = fs::lstat(can_path,&initial_st); if(rv == -1)