Skip to content

Commit

Permalink
src/loadlib.js: fix error message construction
Browse files Browse the repository at this point in the history
Found via #210 with thanks to @gudzpoz
  • Loading branch information
daurnimator committed Dec 2, 2024
1 parent 8df9dde commit 4d85f25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loadlib.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 4d85f25

Please sign in to comment.