Brief summary of issue / Description of requested feature:
refactor all functions' existing standardized error messages to use new "verified" syntax
Reasons for adding feature:
TLuaInterpreter.cpp has a lot unnecessary repetition like this:
if (!lua_isstring(L, 1)) {
lua_pushfstring(L, "setCmdLineStyleSheet: bad argument #1 type (command line name as string expected, got %s!)", luaL_typename(L, 1));
return lua_error(L);
}
name = lua_tostring(L, 1);
Sometimes there are so many alike lines, they overtake the actual functions content in size
Expected result of feature
Remove repetition and increase readability
Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:
use getVerifiedX functions added in #4593, see #4599 for example on how to use them
Brief summary of issue / Description of requested feature:
refactor all functions' existing standardized error messages to use new "verified" syntax
Reasons for adding feature:
TLuaInterpreter.cpp has a lot unnecessary repetition like this:
Sometimes there are so many alike lines, they overtake the actual functions content in size
Expected result of feature
Remove repetition and increase readability
Extra information, such as Mudlet version, operating system and ideas for how to solve / implement:
use getVerifiedX functions added in #4593, see #4599 for example on how to use them