Merge pull request #81 from N-R-K/assert-fix
fix trying to concat nil value on dbg.assert
This commit is contained in:
commit
82b0a05e23
|
@ -513,7 +513,7 @@ end
|
|||
-- Works like assert(), but invokes the debugger on a failure.
|
||||
function dbg.assert(condition, message)
|
||||
if not condition then
|
||||
dbg_writeln(COLOR_RED.."ERROR:"..COLOR_RESET..message)
|
||||
dbg_writeln(COLOR_RED.."ERROR: "..COLOR_RESET..(message or "assertion failed!"))
|
||||
dbg(false, 1, "dbg.assert()")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue