mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-12 06:30:09 -06:00
Improve the reporting of specification errors
This commit is contained in:
@@ -445,12 +445,7 @@ void ScriptEngine::addLibraryFunctions(lua_State* state, LuaLibrary& library,
|
||||
library.documentations.push_back(std::move(func));
|
||||
}
|
||||
catch (const documentation::SpecificationError& e) {
|
||||
for (const documentation::TestResult::Offense& o : e.result.offenses) {
|
||||
LERRORC(o.offender, ghoul::to_string(o.reason));
|
||||
}
|
||||
for (const documentation::TestResult::Warning& w : e.result.warnings) {
|
||||
LWARNINGC(w.offender, ghoul::to_string(w.reason));
|
||||
}
|
||||
logError(e);
|
||||
}
|
||||
lua_pop(state, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user