aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-06-24 13:46:25 -0600
committerBen Burdette <bburdette@gmail.com>2020-06-24 13:46:25 -0600
commit023912def37c8db64dec0339d39f2535e0d79e78 (patch)
tree8717fe3d3969291259def7aa9d43d29c3d879dd1 /src/libexpr/eval.cc
parent93e9307329567c9f181318c4d4d6dc09de20ea48 (diff)
convenience form of addTrace
Diffstat (limited to 'src/libexpr/eval.cc')
-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 3fd8aa285..1cbbb7ade 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -594,17 +594,17 @@ LocalNoInlineNoReturn(void throwUndefinedVarError(const Pos & pos, const char *
LocalNoInline(void addErrorTrace(Error & e, const char * s, const string & s2))
{
- e.addTrace(std::nullopt, hintfmt(s) % s2);
+ e.addTrace(std::nullopt, s, s2);
}
LocalNoInline(void addErrorTrace(Error & e, const Pos & pos, const char * s, const ExprLambda & fun))
{
- e.addTrace(pos, hintfmt(s) % fun.showNamePos());
+ e.addTrace(pos, s, fun.showNamePos());
}
LocalNoInline(void addErrorTrace(Error & e, const Pos & pos, const char * s, const string & s2))
{
- e.addTrace(pos, hintfmt(s) % s2);
+ e.addTrace(pos, s, s2);
}