forked from lix-project/lix
Fix printing of eval errors with two format placeholders
This commit is contained in:
parent
ac0fb38e8a
commit
dad859ba0f
|
@ -904,7 +904,7 @@ void EvalState::throwEvalError(const char * s, const std::string & s2,
|
||||||
const std::string & s3)
|
const std::string & s3)
|
||||||
{
|
{
|
||||||
debugThrowLastTrace(EvalError({
|
debugThrowLastTrace(EvalError({
|
||||||
.msg = hintfmt(s, s2),
|
.msg = hintfmt(s, s2, s3),
|
||||||
.errPos = positions[noPos]
|
.errPos = positions[noPos]
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -913,7 +913,7 @@ void EvalState::throwEvalError(const PosIdx pos, const char * s, const std::stri
|
||||||
const std::string & s3)
|
const std::string & s3)
|
||||||
{
|
{
|
||||||
debugThrowLastTrace(EvalError({
|
debugThrowLastTrace(EvalError({
|
||||||
.msg = hintfmt(s, s2),
|
.msg = hintfmt(s, s2, s3),
|
||||||
.errPos = positions[pos]
|
.errPos = positions[pos]
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
@ -922,7 +922,7 @@ void EvalState::throwEvalError(const PosIdx pos, const char * s, const std::stri
|
||||||
const std::string & s3, Env & env, Expr & expr)
|
const std::string & s3, Env & env, Expr & expr)
|
||||||
{
|
{
|
||||||
debugThrow(EvalError({
|
debugThrow(EvalError({
|
||||||
.msg = hintfmt(s, s2),
|
.msg = hintfmt(s, s2, s3),
|
||||||
.errPos = positions[pos]
|
.errPos = positions[pos]
|
||||||
}), env, expr);
|
}), env, expr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue