mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
handle nil tag color
This commit is contained in:
parent
7ad115bc03
commit
ed0982a832
@ -150,10 +150,10 @@ function log.dmesg(msg, tag, tag_color)
|
||||
out.setTextColor(colors.white)
|
||||
out.write("] ")
|
||||
|
||||
-- colored tag
|
||||
-- print optionally colored tag
|
||||
if tag ~= "" then
|
||||
out.write("[")
|
||||
out.setTextColor(tag_color)
|
||||
if tag_color then out.setTextColor(tag_color) end
|
||||
out.write(tag)
|
||||
out.setTextColor(colors.white)
|
||||
out.write("] ")
|
||||
|
Loading…
Reference in New Issue
Block a user