mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-17 10:00:44 +08:00
chore: 修改调试代码
This commit is contained in:
@@ -23,6 +23,10 @@ bool asst::AbstractConfiger::load(const std::filesystem::path& path)
|
||||
|
||||
const auto& root = ret.value();
|
||||
|
||||
#ifdef ASST_DEBUG
|
||||
// 不捕获异常,可以通过堆栈更直观的看到资源存在的问题
|
||||
return parse(root);
|
||||
#else
|
||||
try {
|
||||
return parse(root);
|
||||
}
|
||||
@@ -34,4 +38,5 @@ bool asst::AbstractConfiger::load(const std::filesystem::path& path)
|
||||
Log.error("Json parse failed", path, e.what());
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user