From cca5af66e8c4aba23a871f328d81785f3e3556e5 Mon Sep 17 00:00:00 2001 From: Josh Grams Date: Fri, 21 Sep 2018 08:32:27 -0400 Subject: [PATCH] setCanvas: rephrase confusing error message. --- src/modules/graphics/wrap_Graphics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/graphics/wrap_Graphics.cpp b/src/modules/graphics/wrap_Graphics.cpp index eb4367b68..4f5f78283 100644 --- a/src/modules/graphics/wrap_Graphics.cpp +++ b/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);