diff --git a/src/main/resources/assets/computercraft/lua/rom/apis/window.lua b/src/main/resources/assets/computercraft/lua/rom/apis/window.lua index eaac77eae..b9d6d59d6 100644 --- a/src/main/resources/assets/computercraft/lua/rom/apis/window.lua +++ b/src/main/resources/assets/computercraft/lua/rom/apis/window.lua @@ -274,7 +274,7 @@ function create( parent, nX, nY, nWidth, nHeight, bStartVisible ) if type( color ) ~= "number" then error( "bad argument #1 (expected number, got " .. type( color ) .. ")", 2 ) elseif tHex[color] == nil then - error( "Invalid color", 2 ) + error( "Invalid color (got " .. color .. ")" , 2 ) end nTextColor = color if bVisible then @@ -321,7 +321,7 @@ function create( parent, nX, nY, nWidth, nHeight, bStartVisible ) if type( color ) ~= "number" then error( "bad argument #1 (expected number, got " .. type( color ) .. ")", 2 ) elseif tHex[color] == nil then - error( "Invalid color", 3 ) + error( "Invalid color (got " .. color .. ")", 2 ) end nBackgroundColor = color end