summary refs log tree commit diff
diff options
context:
space:
mode:
authorwrmr2024-11-03 18:09:24 -0500
committerwrmr2024-11-03 18:09:24 -0500
commit9ee9d3c7dec6090316d21c2eed40992372ac3efa (patch)
treeb4fc259a573e2407dc3be0ecefa061e1d89830bd
parentcfcab548584953c1a7e40eef7b9a209d4e5d1402 (diff)
warn about unsupported doc types
-rw-r--r--parse.c2
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: