diff --git a/src/map.c b/src/map.c index 9bca28d8b..bad758362 100644 --- a/src/map.c +++ b/src/map.c @@ -998,8 +998,12 @@ static int cli_parse_del_map(char **args, char *payload, struct appctx *appctx, /* Lookup the reference in the maps. */ ctx->ref = pat_ref_lookup_ref(args[2]); if (!ctx->ref || - !(ctx->ref->flags & ctx->display_flags)) - return cli_err(appctx, "Unknown map identifier. Please use # or .\n"); + !(ctx->ref->flags & ctx->display_flags)) { + if (ctx->display_flags == PAT_REF_MAP) + return cli_err(appctx, "Unknown map identifier. Please use # or .\n"); + else + return cli_err(appctx, "Unknown ACL identifier. Please use # or .\n"); + } /* If the entry identifier start with a '#', it is considered as * pointer id