Fix a type bug in colorize function

This bug was introduced by dd2f1d7551 and reported by @kilbith
master
Loïc Blot 2017-03-28 14:50:17 +02:00
parent 7c85405d96
commit 1b299b4039
1 changed files with 1 additions and 1 deletions

View File

@ -667,7 +667,7 @@ else
end end
function core.colorize(color, message) function core.colorize(color, message)
local lines = message:split("\n", true) local lines = tostring(message):split("\n", true)
local color_code = core.get_color_escape_sequence(color) local color_code = core.get_color_escape_sequence(color)
for i, line in ipairs(lines) do for i, line in ipairs(lines) do