Skip to content

Commit

Permalink
chore: log error info with file path info, when YAML::LoadFile except…
Browse files Browse the repository at this point in the history
…ion happens.
  • Loading branch information
fxliang committed Jun 17, 2024
1 parent 13228c2 commit 393ebf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rime/config/config_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ bool ConfigData::LoadFromFile(const path& file_path, ConfigCompiler* compiler) {
YAML::Node doc = YAML::LoadFile(file_path.string());
root = ConvertFromYaml(doc, compiler);
} catch (YAML::Exception& e) {
LOG(ERROR) << "Error parsing YAML: " << e.what();
LOG(ERROR) << "Error parsing YAML \"" << file_path << "\" : " << e.what();
return false;
}
return true;
Expand Down

0 comments on commit 393ebf4

Please sign in to comment.