Skip to content

Commit 4d85f25

Browse files
committed
src/loadlib.js: fix error message construction
Found via #210 with thanks to @gudzpoz
1 parent 8df9dde commit 4d85f25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/loadlib.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ const searcher_Croot = function(L) {
437437
if (stat != ERRFUNC)
438438
return checkload(L, 0, filename); /* real error */
439439
else { /* open function not found */
440-
lua_pushstring(L, to_luastring("\n\tno module '%s' in file '%s'"), name, filename);
440+
lua_pushfstring(L, to_luastring("\n\tno module '%s' in file '%s'"), name, filename);
441441
return 1;
442442
}
443443
}

0 commit comments

Comments
 (0)