Commit c8576564 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Tell which director the NULL backend was attempted on

parent eb507582
......@@ -121,7 +121,8 @@ vdir_add_backend(VRT_CTX, struct vdir *vd, VCL_BACKEND be, double weight)
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
CHECK_OBJ_NOTNULL(vd, VDIR_MAGIC);
if (be == NULL) {
VRT_fail(ctx, "NULL backend cannot be added");
VRT_fail(ctx, "%s: NULL backend cannot be added",
vd->dir->vcl_name);
return;
}
AN(be);
......@@ -144,7 +145,8 @@ vdir_remove_backend(VRT_CTX, struct vdir *vd, VCL_BACKEND be, unsigned *cur)
CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
CHECK_OBJ_NOTNULL(vd, VDIR_MAGIC);
if (be == NULL) {
VRT_fail(ctx, "NULL backend cannot be removed");
VRT_fail(ctx, "%s: NULL backend cannot be removed",
vd->dir->vcl_name);
return;
}
CHECK_OBJ(be, DIRECTOR_MAGIC);
......
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