Fix some error kind mismatches
This commit is contained in:
parent
ad3fadb95a
commit
9c42c00570
|
@ -714,7 +714,7 @@ LocalNoInlineNoReturn(void throwTypeErrorWithTrace(
|
||||||
const Pos & p2,
|
const Pos & p2,
|
||||||
const char * s3))
|
const char * s3))
|
||||||
{
|
{
|
||||||
throw EvalError({
|
throw TypeError({
|
||||||
.msg = hintfmt(s, s2, sym),
|
.msg = hintfmt(s, s2, sym),
|
||||||
.errPos = pos,
|
.errPos = pos,
|
||||||
}).addTrace(p2, s3);
|
}).addTrace(p2, s3);
|
||||||
|
@ -729,7 +729,7 @@ LocalNoInlineNoReturn(void throwTypeErrorWithTrace(
|
||||||
const Pos & p2,
|
const Pos & p2,
|
||||||
const char * s3))
|
const char * s3))
|
||||||
{
|
{
|
||||||
throw EvalError({
|
throw TypeError({
|
||||||
.msg = hintfmt(s, s2, sym),
|
.msg = hintfmt(s, s2, sym),
|
||||||
.errPos = pos,
|
.errPos = pos,
|
||||||
.suggestions = suggestions
|
.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))
|
LocalNoInlineNoReturn(void throwEvalError(const Pos & pos, const char * s, const Value & v))
|
||||||
{
|
{
|
||||||
throw AssertionError({
|
throw EvalError({
|
||||||
.msg = hintfmt(s, showType(v)),
|
.msg = hintfmt(s, showType(v)),
|
||||||
.errPos = pos
|
.errPos = pos
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue