diff --git a/src/odb/src/3dblox/baseParser.cpp b/src/odb/src/3dblox/baseParser.cpp index e21d8f2bf7..e4a5076156 100644 --- a/src/odb/src/3dblox/baseParser.cpp +++ b/src/odb/src/3dblox/baseParser.cpp @@ -174,7 +174,8 @@ void BaseParser::resolvePaths(const std::string& path, void BaseParser::logError(const std::string& message) { - logger_->error(utl::ODB, 521, "Parser Error: {}", message); + logger_->error( + utl::ODB, 521, "Parser Error in {}: {}", current_file_path_, message); } std::string BaseParser::trim(const std::string& str) diff --git a/src/odb/src/3dblox/dbvParser.cpp b/src/odb/src/3dblox/dbvParser.cpp index ddeff4c4b8..672b7d5956 100644 --- a/src/odb/src/3dblox/dbvParser.cpp +++ b/src/odb/src/3dblox/dbvParser.cpp @@ -27,7 +27,7 @@ DbvData DbvParser::parseFile(const std::string& filename) current_file_path_ = filename; std::ifstream file(filename); if (!file.is_open()) { - logError("3DBV Parser Error: Cannot open file: " + filename); + logError("Cannot open file"); } std::stringstream buffer; diff --git a/src/odb/src/3dblox/dbxParser.cpp b/src/odb/src/3dblox/dbxParser.cpp index 39d8304fc5..7fb597048e 100644 --- a/src/odb/src/3dblox/dbxParser.cpp +++ b/src/odb/src/3dblox/dbxParser.cpp @@ -26,7 +26,7 @@ DbxData DbxParser::parseFile(const std::string& filename) current_file_path_ = filename; std::ifstream file(filename); if (!file.is_open()) { - logError("DBX Parser Error: Cannot open file: " + filename); + logError("Cannot open file"); } std::stringstream buffer;