Commit 20d84897 authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Refer to VCL subroutines as such in error messages

parent 8c2ed012
......@@ -203,7 +203,7 @@ varnish v1 -errvcl {Name of function, 'foo.bar', contains illegal character '.'}
}
}
varnish v1 -errvcl {The names 'vcl*' are reserved for methods.} {
varnish v1 -errvcl {The names 'vcl*' are reserved for subroutines.} {
sub vcl_bar {
}
sub vcl_recv {
......
......@@ -228,9 +228,9 @@ vcc_ParseFunction(struct vcc *tl)
(t->b[1] == 'c'|| t->b[1] == 'C') &&
(t->b[2] == 'l'|| t->b[2] == 'L')) {
VSB_printf(tl->sb,
"The names 'vcl*' are reserved for methods.\n");
"The names 'vcl*' are reserved for subroutines.\n");
vcc_ErrWhere(tl, t);
VSB_printf(tl->sb, "Valid vcl_* methods are:\n");
VSB_printf(tl->sb, "Valid vcl_* subroutines are:\n");
VTAILQ_FOREACH(p, &tl->procs, list) {
if (p->method != NULL)
VSB_printf(tl->sb, "\t%s\n",
......
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