commit 0ef0a08f122392e3a93a6e1c12d3afb68df48489
parent 9b4925d12c298617495cd4d4191c208004fe11b7
Author: Sebastian <sebastian@sebsite.pw>
Date: Fri, 29 Sep 2023 22:19:55 -0400
hare::parse+test: use errorfln instead of fatalf
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hare/parse/+test/loc.ha b/hare/parse/+test/loc.ha
@@ -18,7 +18,8 @@ fn expr_testloc(srcs: str...) void = for (let i = 0z; i < len(srcs); i += 1) {
case let exp: ast::expr =>
yield exp;
case let err: error =>
- fmt::fatalf("{}: {}", srcs[i], strerror(err));
+ fmt::errorfln("{}: {}", srcs[i], strerror(err))!;
+ abort();
};
defer ast::expr_finish(exp);
let runes = 0z;