Commit 31562dfe authored by Geoff Simmons's avatar Geoff Simmons

Fix the error message when the path in the VDP constructor is empty.

parent 794b77d0
......@@ -138,6 +138,15 @@ varnish v1 -vcl+backend {
client c1 -run
varnish v1 -errvcl {vdp pipe failure: new emptypath: path is empty} {
import ${vmod_pipe};
backend b None;
sub vcl_init {
new emptypath = pipe.vdp(path="");
}
}
varnish v1 -vcl { backend b None; }
# Tests the discard event, with removal of VDPs.
......
......@@ -540,7 +540,7 @@ vmod_vdp__init(VRT_CTX, struct VPFX(pipe_vdp) **vdpp, const char *obj_name,
AN(obj_name);
if (path == NULL || *path == '\0') {
VDPFAIL(ctx, "new %s: path is empty", path);
VDPFAIL(ctx, "new %s: path is empty", obj_name);
return;
}
errno = 0;
......
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