Commit a7167844 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Handle errors in varnishncsa formats slightly better

Print out the rest of the format, changing the error from

  "Unknown format character: {"

to:

  "Unknown format starting at: %{asdf}x"
parent f5248e50
......@@ -665,7 +665,7 @@ h_ncsa(void *priv, enum VSL_tag_e tag, unsigned fd,
/* Fall through if we haven't handled something */
/* FALLTHROUGH*/
default:
fprintf(stderr, "Unknown format character: %c\n", *p);
fprintf(stderr, "Unknown format starting at: %s\n", --p);
exit(1);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment