From 4d85f25e772c33969c662134aec10a86d108eccd Mon Sep 17 00:00:00 2001 From: daurnimator Date: Mon, 2 Dec 2024 12:42:44 +1100 Subject: [PATCH] src/loadlib.js: fix error message construction Found via https://github.com/fengari-lua/fengari/pull/210/ with thanks to @gudzpoz --- src/loadlib.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/loadlib.js b/src/loadlib.js index afcfd3c..92bf677 100644 --- a/src/loadlib.js +++ b/src/loadlib.js @@ -437,7 +437,7 @@ const searcher_Croot = function(L) { if (stat != ERRFUNC) return checkload(L, 0, filename); /* real error */ else { /* open function not found */ - lua_pushstring(L, to_luastring("\n\tno module '%s' in file '%s'"), name, filename); + lua_pushfstring(L, to_luastring("\n\tno module '%s' in file '%s'"), name, filename); return 1; } }