aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_http_js_module.c
diff options
context:
space:
mode:
authorDmitry Volyntsev <xeioex@nginx.com>2017-06-22 18:52:47 +0300
committerDmitry Volyntsev <xeioex@nginx.com>2017-06-22 18:52:47 +0300
commitf57d05aa3dac5cd7623a5cd2fbd3f2907c4b56e7 (patch)
tree1793096f2ac3b9b7577fe809c7cd20be0b8adcbf /nginx/ngx_http_js_module.c
parent5c179c41b3dd25a23d511c92829130046370437b (diff)
downloadnjs-f57d05aa3dac5cd7623a5cd2fbd3f2907c4b56e7.tar.gz
njs-f57d05aa3dac5cd7623a5cd2fbd3f2907c4b56e7.zip
Log error message if VM creation failed.
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r--nginx/ngx_http_js_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c
index b2e84481..cfe83d80 100644
--- a/nginx/ngx_http_js_module.c
+++ b/nginx/ngx_http_js_module.c
@@ -1323,6 +1323,7 @@ ngx_http_js_include(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
jlcf->vm = njs_vm_create(mcp, &shared, &externals);
if (jlcf->vm == NULL) {
+ ngx_conf_log_error(NGX_LOG_EMERG, cf, 0, "failed to create JS VM");
return NGX_CONF_ERROR;
}