Browse Source

correct error message for context_ndx

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@730 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.6
Xuefer 16 years ago
parent
commit
40fb6ffec1
  1. 6
      src/configparser.y

6
src/configparser.y

@ -162,7 +162,8 @@ varline ::= key(A) ASSIGN expression(B). {
array_insert_unique(ctx->current->value, B);
B = NULL;
} else {
fprintf(stderr, "Duplicate config variable in conditional 1 %s: %s\n",
fprintf(stderr, "Duplicate config variable in conditional %d %s: %s\n",
ctx->current->context_ndx,
ctx->current->key->ptr, B->key->ptr);
ctx->ok = 0;
B->free(B);
@ -196,7 +197,8 @@ varline ::= key(A) APPEND expression(B). {
array_insert_unique(ctx->current->value, du);
}
} else {
fprintf(stderr, "Undefined config variable in conditional 1 %s: %s\n",
fprintf(stderr, "Undefined config variable in conditional %d %s: %s\n",
ctx->current->context_ndx,
ctx->current->key->ptr, A->ptr);
ctx->ok = 0;
}

Loading…
Cancel
Save