This VCL compiler thing...
Dag-Erling Smørgrav
des at linpro.no
Mon Mar 13 10:53:38 CET 2006
"Poul-Henning Kamp" <phk at phk.freebsd.dk> writes:
> I know some people are quite religious about error messages, so here
> are a couple of samples from the VCL compiler:
>
>
> Unreferenced function 'request_policy', first mention is
> Line 8 Pos 4
> sub request_policy {
> ----##############--
>
>
> Unknown variable 'obj.bandwidth'
> At: Line 88 Pos 12
> if (obj.bandwidth < 1 kb/h) {
> ------------#############------------
>
>
> Assignments not possible for 'backend.down'
> Line 88 Pos 25
> set backend.down = 1;
> -------------------------#---
>
>
> Expected action, 'if' or '}'
> Line 88 Pos 8
> backend.down = 1;
> --------############-----
>
>
> Syntax error at
> Line 80 Pos 13
> fetch@;
> -------------#-
>
> Is that livable ?
Good enough for government work. We can add a command-line option
later to generate editor-friendly error messages.
DES
--
Dag-Erling Smørgrav
Senior Software Developer
Linpro AS - www.linpro.no
More information about the varnish-dev
mailing list