Merge pull request #81 from N-R-K/assert-fix

fix trying to concat nil value on dbg.assert
This commit is contained in:
Scott Lembcke 2024-08-18 10:57:09 -05:00 committed by GitHub
commit 82b0a05e23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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