mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-03-03 07:29:23 +00:00
Fix redbean to check for file read result when -F option is used (#569)
This commit is contained in:
parent
91a3252434
commit
d2cec808dc
1 changed files with 3 additions and 1 deletions
|
@ -1076,7 +1076,9 @@ static bool LuaEvalCode(const char *code) {
|
|||
}
|
||||
|
||||
static bool LuaEvalFile(const char *path) {
|
||||
return LuaEvalCode(gc(xslurp(path, 0)));
|
||||
char *f = gc(xslurp(path, 0));
|
||||
if (!f) FATALF("(cfg) error: failed to read file %`'s", path);
|
||||
return LuaEvalCode(f);
|
||||
}
|
||||
|
||||
static bool LuaOnClientConnection(void) {
|
||||
|
|
Loading…
Add table
Reference in a new issue