diff options
-rw-r--r-- | builtin/game/misc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/game/misc.lua b/builtin/game/misc.lua index 63d64817c..05237662c 100644 --- a/builtin/game/misc.lua +++ b/builtin/game/misc.lua @@ -287,7 +287,7 @@ function core.encode_png(width, height, data, compression) local expected_byte_count = width * height * 4 if type(data) ~= "table" and type(data) ~= "string" then - error("Incorrect type for 'height', expected table or string, got " .. type(height)) + error("Incorrect type for 'data', expected table or string, got " .. type(data)) end local data_length = type(data) == "table" and #data * 4 or string.len(data) |