Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/odb/src/3dblox/baseParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/odb/src/3dblox/dbvParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/odb/src/3dblox/dbxParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Loading