fix: proper nil printing in logger

main
evilgooinajar 2025-01-19 14:19:49 +01:00
parent d526238ee5
commit f38872f6db
1 changed files with 2 additions and 1 deletions

View File

@ -4,9 +4,10 @@ local errors_buffer = {}
local logger = { local logger = {
print = function( str ) print = function( str )
print( str ) print( str or "" )
end, end,
printerr = function( str) printerr = function( str)
str = str or ""
if str:sub(#str,#str) ~= "\n" then if str:sub(#str,#str) ~= "\n" then
str = str .. "\n" str = str .. "\n"
end end