diff --git a/toml/parser.hpp b/toml/parser.hpp index 62900ee..b2e4755 100644 --- a/toml/parser.hpp +++ b/toml/parser.hpp @@ -2113,7 +2113,7 @@ basic_value parse(const std::filesystem::path& fpath) throw std::runtime_error("toml::parse: file open error -> " + fpath.string()); } - return parse(ifs, fname); + return parse(ifs, fpath.string()); } #endif // TOML11_HAS_STD_FILESYSTEM