diff --git a/src/mergerfs.cpp b/src/mergerfs.cpp index dccec71e..42c8c7b6 100644 --- a/src/mergerfs.cpp +++ b/src/mergerfs.cpp @@ -304,10 +304,13 @@ main(int argc_, char **argv_) { ghc::filesystem::path path{argv_[1]}; - - fmt::print("{} : {}\n", - path.string(), - fs::find_mount_point(path)->string()); + fs::ecpath ecpath; + + ecpath = fs::find_mount_point(path); + if(ecpath) + fmt::print("{} : {}\n", + path.string(), + ec->string()); return 0;