AP_Scripting: Only use messages that are useful for debugging

This commit is contained in:
murata 2021-09-08 23:27:59 +09:00 committed by Peter Barker
parent 0470fb2cb8
commit 731fd7221f
1 changed files with 0 additions and 1 deletions

View File

@ -54,7 +54,6 @@ lua_scripts::script_info *lua_scripts::load_script(lua_State *L, char *filename)
if (int error = luaL_loadfile(L, filename)) {
switch (error) {
case LUA_ERRSYNTAX:
gcs().send_text(MAV_SEVERITY_CRITICAL, "Lua: Syntax error in %s", filename);
gcs().send_text(MAV_SEVERITY_CRITICAL, "Lua: Error: %s", lua_tostring(L, -1));
lua_pop(L, lua_gettop(L));
return nullptr;