Commit e18a6ab5 authored by Kristian Lyngstol's avatar Kristian Lyngstol

Formally remove error from vcl_deliver VCC

Note that error wasn't actually working in vcl_deliver, and this just puts
VCC in line with the rest of Varnish. Syntax errors are better than assert
errors.

Re #1027

I'll leave it for later discussion to see if we close #1027, which is
technically a feature request now, though a request for a feature we used
to have (not sure how well it worked).
parent fa3b136f
varnishtest "Test if you can error in vcl_deliver"
varnish v1 -badvcl {
sub vcl_deliver {
error 201 "ok";
}
}
......@@ -320,7 +320,7 @@ static struct action_table {
} action_table[] = {
{ "error", parse_error,
VCL_MET_RECV | VCL_MET_PIPE | VCL_MET_PASS | VCL_MET_HASH |
VCL_MET_MISS | VCL_MET_HIT | VCL_MET_FETCH | VCL_MET_DELIVER
VCL_MET_MISS | VCL_MET_HIT | VCL_MET_FETCH
},
#define VCL_RET_MAC(l, U, B) \
......
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