about summary refs log tree commit diff
path: root/boot/lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'boot/lex.c')
-rw-r--r--boot/lex.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/boot/lex.c b/boot/lex.c
index 0fc6ed1..c66d160 100644
--- a/boot/lex.c
+++ b/boot/lex.c
@@ -275,7 +275,8 @@ token_kind_to_string(enum Token_Kind kind)
         return "ASSIGN_RIGHT_SHIFT";
 
     default:
-        return "";
+        failure("unknown token kind passed to `token_kind_to_string`");
+        return nil;
     }
 }