From 9ee9d3c7dec6090316d21c2eed40992372ac3efa Mon Sep 17 00:00:00 2001 From: wrmr Date: Sun, 3 Nov 2024 18:09:24 -0500 Subject: warn about unsupported doc types --- parse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/parse.c b/parse.c index a1a68d8..22e7edf 100644 --- a/parse.c +++ b/parse.c @@ -1,4 +1,5 @@ #include "parse.h" +#include "err.h" int parse_doc(enum doc_type type, struct doc *d, const buf_t *b) { switch (type) { @@ -14,6 +15,7 @@ int parse_doc(enum doc_type type, struct doc *d, const buf_t *b) { } goto ok; default: + perr("unsupported doctype"); goto err; } ok: -- cgit 1.4.1-2-gfad0