love.math.triangulate's error message when there are too few vertices includes the given vert count.

This commit is contained in:
Sasha Szpakowski
2024-12-20 12:35:51 -04:00
parent 4f514a6d0d
commit 8ca321b7d3
+1 -1
View File
@@ -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<Triangle> triangles;