From aa8d4a782d88738b3ea921cde5a450656da8fa63 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 27 May 2020 11:46:47 -0300 Subject: Details (more uniformity in error messages) --- lauxlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lauxlib.c') diff --git a/lauxlib.c b/lauxlib.c index f2ba704f..e6d74168 100644 --- a/lauxlib.c +++ b/lauxlib.c @@ -476,7 +476,7 @@ static void *resizebox (lua_State *L, int idx, size_t newsize) { UBox *box = (UBox *)lua_touserdata(L, idx); void *temp = allocf(ud, box->box, box->bsize, newsize); if (temp == NULL && newsize > 0) /* allocation error? */ - luaL_error(L, "not enough memory for buffer allocation"); + luaL_error(L, "not enough memory"); box->box = temp; box->bsize = newsize; return temp; -- cgit v1.2.3-55-g6feb