mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
#356 fixed extract assert msg
This commit is contained in:
parent
73ceed0f60
commit
670ca78a5b
@ -7,7 +7,7 @@ local flasher = require("graphics.flasher")
|
||||
|
||||
local core = {}
|
||||
|
||||
core.version = "2.0.0"
|
||||
core.version = "2.0.1"
|
||||
|
||||
core.flasher = flasher
|
||||
core.events = events
|
||||
@ -115,7 +115,7 @@ end
|
||||
|
||||
-- extract the custom element assert message, dropping the path to the element file
|
||||
function core.extract_assert_msg(msg)
|
||||
return string.sub(msg, (string.find(msg, "@") + 1) or 1)
|
||||
return string.sub(msg, (string.find(msg, "@") or 0) + 1)
|
||||
end
|
||||
|
||||
-- Interactive Field Manager
|
||||
|
Loading…
Reference in New Issue
Block a user