about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/bootstrap/main.src5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/main.src b/src/bootstrap/main.src
index 7ff2643..aa916d9 100644
--- a/src/bootstrap/main.src
+++ b/src/bootstrap/main.src
@@ -13,6 +13,11 @@ import "!stdlib.src";
 import "tokenizer.src";
 
 let main = (argc: i64, argv: **i8) => i64 {
+	if argc < 2 {
+		println("Need filename!");
+		return 1;
+	};
+
 	let filename = *(argv + 1);
 
 	println("%s", filename);