aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-03-18 10:22:47 +0100
committerGuillaume Maudoux <guillaume.maudoux@tweag.io>2022-03-18 10:22:47 +0100
commit9c42c005706a68f31a28398ce63b956ad0510549 (patch)
treed36af3ea846968d28a361d037a9c136718cae711 /src/libexpr
parentad3fadb95aaae97910082335800c2be57942e154 (diff)
Fix some error kind mismatches
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/eval.cc6
1 files 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
});