commit db68192e4315d5f2b5501ee0c124329c654aced3
parent 1331f5dd82546646006e0e44e2ea67f15a4e82db
Author: Byron Torres <b@torresjrjr.com>
Date: Thu, 28 Dec 2023 11:47:39 +0000
print parsing errors
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/main.ha b/main.ha
@@ -112,8 +112,9 @@ export fn main() void = {
switch (s.mode) {
case InputMode::COMMAND =>
const execnow = match (parse(&cmd, input)) {
- case let e: ParseError =>
- continue; // TODO: print error
+ case let err: ParseError =>
+ errormsg(&s, strerror(err));
+ continue;
case let b: bool =>
yield b;
};