From 8ca321b7d3784df507838b49e4dab7db2c8ba9ae Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Fri, 20 Dec 2024 12:35:51 -0400 Subject: [PATCH] love.math.triangulate's error message when there are too few vertices includes the given vert count. --- src/modules/math/wrap_Math.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/math/wrap_Math.cpp b/src/modules/math/wrap_Math.cpp index 1e91e3675..e1de15c38 100644 --- a/src/modules/math/wrap_Math.cpp +++ b/src/modules/math/wrap_Math.cpp @@ -179,7 +179,7 @@ int w_triangulate(lua_State *L) } if (vertices.size() < 3) - return luaL_error(L, "Need at least 3 vertices to triangulate"); + return luaL_error(L, "Need at least 3 vertices to triangulate (got %d).", (int)vertices.size()); std::vector triangles;