Remove error from documentation and add missing backend declaration from
the test so it shows the expected error.

  f.-

diff --git a/bin/varnishtest/tests/r01027.vtc b/bin/varnishtest/tests/r01027.vtc
index 6c20b00..7545adc 100644
--- a/bin/varnishtest/tests/r01027.vtc
+++ b/bin/varnishtest/tests/r01027.vtc
@@ -1,6 +1,7 @@
 varnishtest "Test if you can error in vcl_deliver"
 
 varnish v1 -badvcl {
+       backend b { .host = "127.0.0.1"; }
        sub vcl_deliver {
                error 201 "ok";
        }
diff --git a/doc/sphinx/reference/vcl.rst b/doc/sphinx/reference/vcl.rst
index 4971315..1c1d8a2 100644
--- a/doc/sphinx/reference/vcl.rst
+++ b/doc/sphinx/reference/vcl.rst
@@ -512,9 +512,6 @@ vcl_deliver
   deliver
     Deliver the object to the client.
 
-  error code [reason]
-    Return the specified error code to the client and abandon the request.
-
   restart
     Restart the transaction. Increases the restart counter. If the number 
     of restarts is higher than *max_restarts* varnish emits a guru meditation 

_______________________________________________
varnish-dev mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev

Reply via email to