Browse Source

setCanvas: rephrase confusing error message.

Josh Grams 7 years ago
parent
commit
cca5af66e8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/modules/graphics/wrap_Graphics.cpp

+ 1 - 1
src/modules/graphics/wrap_Graphics.cpp

@@ -290,7 +290,7 @@ int w_setCanvas(lua_State *L)
 				targets.colors.emplace_back(luax_checkcanvas(L, -1), 0);
 
 				if (targets.colors.back().canvas->getTextureType() != TEXTURE_2D)
-					return luaL_error(L, "The table-of-tables variant of setCanvas must be used with non-2D Canvases.");
+					return luaL_error(L, "Non-2D canvases must use the table-of-tables variant of setCanvas.");
 			}
 
 			lua_pop(L, 1);