| 585 | |
| 586 | |
| 587 | static int errfile (lua_State *L, const char *what, int fnameindex) { |
| 588 | const char *serr = strerror(errno); |
| 589 | const char *filename = lua_tostring(L, fnameindex) + 1; |
| 590 | lua_pushfstring(L, "cannot %s %s: %s", what, filename, serr); |
| 591 | lua_remove(L, fnameindex); |
| 592 | return LUA_ERRFILE; |
| 593 | } |
| 594 | |
| 595 | |
| 596 | static int skipBOM (LoadF *lf) { |
no test coverage detected