fix: proper nil printing in logger

main
Guilian 2025-01-19 14:19:49 +01:00
parent da51b3697e
commit fd06af5983
Signed by: Guilian
GPG Key ID: B86CC9678982ED8C
1 changed files with 2 additions and 1 deletions

View File

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