[njs] Fixed code size mismatch error message.

Dmitry Volyntsev xeioex at nginx.com
Thu Sep 27 14:37:09 UTC 2018


details:   http://hg.nginx.org/njs/rev/5175716b5e80
branches:  
changeset: 613:5175716b5e80
user:      Dmitry Volyntsev <xeioex at nginx.com>
date:      Thu Sep 27 17:36:38 2018 +0300
description:
Fixed code size mismatch error message.

diffstat:

 njs/njs_generator.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 68a3580688ab -r 5175716b5e80 njs/njs_generator.c
--- a/njs/njs_generator.c	Wed Sep 19 19:36:00 2018 +0300
+++ b/njs/njs_generator.c	Thu Sep 27 17:36:38 2018 +0300
@@ -2066,7 +2066,7 @@ njs_generate_scope(njs_vm_t *vm, njs_par
                          parser->code_size, code_size);
 
     if (nxt_slow_path(parser->code_size < code_size)) {
-        njs_internal_error(vm, "code size mismatch actual %uz < expected %uz",
+        njs_internal_error(vm, "code size mismatch expected %uz < actual %uz",
                            parser->code_size, code_size);
         return NXT_ERROR;
     }


More information about the nginx-devel mailing list