nghttpx: Log error when mruby file cannot be opened
This commit is contained in:
parent
f94d720909
commit
c278adde7a
|
@ -145,6 +145,7 @@ RProc *compile(mrb_state *mrb, const StringRef &filename) {
|
|||
|
||||
auto infile = fopen(filename.c_str(), "rb");
|
||||
if (infile == nullptr) {
|
||||
LOG(ERROR) << "Could not open mruby file " << filename;
|
||||
return nullptr;
|
||||
}
|
||||
auto infile_d = defer(fclose, infile);
|
||||
|
|
Loading…
Reference in New Issue