MCPcopy Create free account
hub / github.com/LUX-Core/lux / FormatScriptError

Function FormatScriptError

src/test/script_tests.cpp:115–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113};
114
115const char *FormatScriptError(ScriptError_t err)
116{
117 for (unsigned int i=0; i<ARRAYLEN(script_errors); ++i)
118 if (script_errors[i].err == err)
119 return script_errors[i].name;
120 BOOST_ERROR("Unknown scripterror enumeration value, update script_errors in script_tests.cpp.");
121 return "";
122}
123
124ScriptError_t ParseScriptError(const std::string &name)
125{

Callers 2

DoTestFunction · 0.85
GetJSONMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected