diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-10-28 13:07:02 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-10-28 13:07:02 +0000 |
commit | ad88c5ec68b1cfd47017face422132ab8c7b2874 (patch) | |
tree | d3137b718ad90f1f4160bb2641daf280ba47b557 | |
parent | 078e0fc6ca29a5917b43c0834e4a4f97b58e25de (diff) | |
download | tipidee-ad88c5ec68b1cfd47017face422132ab8c7b2874.tar.gz tipidee-ad88c5ec68b1cfd47017face422132ab8c7b2874.tar.xz tipidee-ad88c5ec68b1cfd47017face422132ab8c7b2874.zip |
Fix error message
Signed-off-by: Laurent Bercot <ska@appnovation.com>
-rw-r--r-- | src/config/lexparse.c | 2 |
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-- ; |