From 393ebf487ba7395034b98baa2a796b0584092a07 Mon Sep 17 00:00:00 2001 From: fxliang Date: Fri, 14 Jun 2024 15:52:06 +0800 Subject: [PATCH] chore: log error info with file path info, when YAML::LoadFile exception happens. --- src/rime/config/config_data.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rime/config/config_data.cc b/src/rime/config/config_data.cc index 06309c4ed6..aba321a9e7 100644 --- a/src/rime/config/config_data.cc +++ b/src/rime/config/config_data.cc @@ -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;