diff --git a/src/solver/modeler/loadFiles/readLibraries.cpp b/src/solver/modeler/loadFiles/readLibraries.cpp index 8e78fefcee..d4ed6d955f 100644 --- a/src/solver/modeler/loadFiles/readLibraries.cpp +++ b/src/solver/modeler/loadFiles/readLibraries.cpp @@ -44,12 +44,12 @@ static Study::SystemModel::Library loadSingleLibrary(const fs::path& filePath) } catch (const YAML::Exception& e) { - handleYamlError(e, filePath); + handleYamlError(e, filePath.string()); throw ErrorLoadingYaml(e.what()); } catch (const std::runtime_error& e) { - handleRuntimeError(e, filePath); + handleRuntimeError(e, filePath.string()); throw ErrorLoadingYaml(e.what()); } }