aboutsummaryrefslogtreecommitdiff
path: root/nginx/ngx_http_js_module.c
diff options
context:
space:
mode:
Diffstat (limited to 'nginx/ngx_http_js_module.c')
-rw-r--r--nginx/ngx_http_js_module.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/nginx/ngx_http_js_module.c b/nginx/ngx_http_js_module.c
index 800a9893..7d43d50f 100644
--- a/nginx/ngx_http_js_module.c
+++ b/nginx/ngx_http_js_module.c
@@ -1751,8 +1751,7 @@ ngx_http_js_ext_subrequest(njs_vm_t *vm, njs_value_t *args, nxt_uint_t nargs,
}
if (method == n) {
- njs_vm_error(vm, "unknown method \"%.*s\"",
- (int) method_name.length, method_name.start);
+ njs_vm_error(vm, "unknown method \"%V\"", &method_name);
return NJS_ERROR;
}
}