fix: lua error message not always shown (#1604)
This commit is contained in:
@@ -798,7 +798,8 @@ void luaError(lua_State * L, uint8_t error)
|
|||||||
if (!strncmp(msg, ".", 2)) msg += 1;
|
if (!strncmp(msg, ".", 2)) msg += 1;
|
||||||
#endif
|
#endif
|
||||||
#if LCD_W == 128
|
#if LCD_W == 128
|
||||||
msg = strrchr(msg, '/') + 1;
|
const char * tmp = strrchr(msg, '/');
|
||||||
|
if (tmp) msg = tmp + 1;
|
||||||
#else
|
#else
|
||||||
if (!strncmp(msg, "/SCRIPTS/", 9)) msg += 9;
|
if (!strncmp(msg, "/SCRIPTS/", 9)) msg += 9;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user