]> git.kaiwu.me - nginx.git/commitdiff
quoted too long parameter error
authorIgor Sysoev <igor@sysoev.ru>
Wed, 27 Aug 2008 12:19:07 +0000 (12:19 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Wed, 27 Aug 2008 12:19:07 +0000 (12:19 +0000)
src/core/ngx_conf_file.c

index fb688007a28c04a6dbed5d14b62e7e8318725d92..b6c94a52fb9792210105a9afb94ace34a6215269 100644 (file)
@@ -482,9 +482,22 @@ ngx_conf_read_token(ngx_conf_t *cf)
             if (len == ngx_pagesize) {
                 cf->conf_file->line = start_line;
 
+                if (d_quoted) {
+                    ch = '"';
+
+                } else if (s_quoted) {
+                    ch = '\'';
+
+                } else {
+                    ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
+                                       "too long parameter \"%*s...\" started",
+                                       10, start);
+                    return NGX_ERROR;
+                }
+
                 ngx_conf_log_error(NGX_LOG_EMERG, cf, 0,
-                                   "too long parameter \"%*s...\" started",
-                                   10, start);
+                                   "too long parameter, probably "
+                                   "missing terminating \"%c\" character", ch);
                 return NGX_ERROR;
             }