chore: 修改调试代码

This commit is contained in:
MistEO
2022-10-11 19:32:54 +08:00
parent fe54e6c85a
commit 2c9fa536ab

View File

@@ -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
}