From c278adde7a2ae9871b10a0d572edaa5be29b20dc Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 30 Sep 2018 12:23:01 +0900 Subject: [PATCH] nghttpx: Log error when mruby file cannot be opened --- src/shrpx_mruby.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/shrpx_mruby.cc b/src/shrpx_mruby.cc index 5549b534..ca29ef04 100644 --- a/src/shrpx_mruby.cc +++ b/src/shrpx_mruby.cc @@ -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);