aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/engine.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/engine.c b/src/engine.c
index e4d362e..0a81f44 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -20,8 +20,12 @@ ingest(char **buffer)
break;
directive_t *directive = find_directive(*buffer, match);
- if (directive == NULL)
+ if (directive == NULL) {
+ printf(
+ "Unknown directive: %.*s\n", match->length, *buffer + match->offset);
+
break;
+ }
switch (directive->type) {
case INCLUDE: {