From 9c42c005706a68f31a28398ce63b956ad0510549 Mon Sep 17 00:00:00 2001 From: Guillaume Maudoux Date: Fri, 18 Mar 2022 10:22:47 +0100 Subject: [PATCH] Fix some error kind mismatches --- src/libexpr/eval.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 320fd2597..7b843aeaf 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -714,7 +714,7 @@ LocalNoInlineNoReturn(void throwTypeErrorWithTrace( const Pos & p2, const char * s3)) { - throw EvalError({ + throw TypeError({ .msg = hintfmt(s, s2, sym), .errPos = pos, }).addTrace(p2, s3); @@ -729,7 +729,7 @@ LocalNoInlineNoReturn(void throwTypeErrorWithTrace( const Pos & p2, const char * s3)) { - throw EvalError({ + throw TypeError({ .msg = hintfmt(s, s2, sym), .errPos = pos, .suggestions = suggestions @@ -768,7 +768,7 @@ LocalNoInlineNoReturn(void throwEvalError(const Pos & pos, const Suggestions & s LocalNoInlineNoReturn(void throwEvalError(const Pos & pos, const char * s, const Value & v)) { - throw AssertionError({ + throw EvalError({ .msg = hintfmt(s, showType(v)), .errPos = pos });