summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-10-28 13:07:02 +0000
committerLaurent Bercot <ska@appnovation.com>2023-10-28 13:07:02 +0000
commitad88c5ec68b1cfd47017face422132ab8c7b2874 (patch)
treed3137b718ad90f1f4160bb2641daf280ba47b557 /src
parent078e0fc6ca29a5917b43c0834e4a4f97b58e25de (diff)
downloadtipidee-ad88c5ec68b1cfd47017face422132ab8c7b2874.tar.xz
Fix error message
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'src')
-rw-r--r--src/config/lexparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/lexparse.c b/src/config/lexparse.c
index b75ccd6..b72182e 100644
--- a/src/config/lexparse.c
+++ b/src/config/lexparse.c
@@ -204,7 +204,7 @@ static inline void parse_customheader (char const *s, size_t const *word, size_t
if (n < 2)
strerr_dief8x(1, "too ", "few", " arguments to directive ", "custom-header", " in file ", g.storage.s + md->filepos, " line ", md->linefmt) ;
p = BSEARCH(struct namevalue_s, s + *word, choptions) ;
- if (!p) strerr_dief7x(1, "type should be weak or strong for", " directive ", "custom-header", " in file ", g.storage.s + md->filepos, " line ", md->linefmt) ;
+ if (!p) strerr_dief9x(1, "invalid subcommand ", s + *word, " for", " directive ", "custom-header", " in file ", g.storage.s + md->filepos, " line ", md->linefmt) ;
if ((p->value == CHO_ADD || p->value == CHO_ALWAYS) == (n == 2))
strerr_dief10x(1, "too ", n == 2 ? "few" : "many", " arguments to directive ", "custom-header", " ", p->name, " in file ", g.storage.s + md->filepos, " line ", md->linefmt) ;
word++ ; n-- ;