nghttpx: Log error when mruby file cannot be opened

This commit is contained in:
Tatsuhiro Tsujikawa 2018-09-30 12:23:01 +09:00
parent f94d720909
commit c278adde7a
1 changed files with 1 additions and 0 deletions

View File

@ -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);