commit 93da116682d09ab1b3fd5da2aee26cd177b046dc
parent 66d4a978994cd10a06cb087308886c6405ab32c7
Author: Sebastian <sebastian@sebsite.pw>
Date: Thu, 21 Apr 2022 15:41:39 -0400
hare::parse: better error message for expr_testloc
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/hare/parse/+test/loc.ha b/hare/parse/+test/loc.ha
@@ -18,8 +18,7 @@ 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::errorln(strerror(err))!;
- abort();
+ fmt::fatal("{}: {}", srcs[i], strerror(err));
};
defer ast::expr_free(exp);
let runes = 0z;