diff options
author | wrmr | 2024-11-03 18:09:24 -0500 |
---|---|---|
committer | wrmr | 2024-11-03 18:09:24 -0500 |
commit | 9ee9d3c7dec6090316d21c2eed40992372ac3efa (patch) | |
tree | b4fc259a573e2407dc3be0ecefa061e1d89830bd /parse.c | |
parent | cfcab548584953c1a7e40eef7b9a209d4e5d1402 (diff) |
warn about unsupported doc types
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
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: |