diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-06-24 13:46:25 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-06-24 13:46:25 -0600 |
commit | 023912def37c8db64dec0339d39f2535e0d79e78 (patch) | |
tree | 8717fe3d3969291259def7aa9d43d29c3d879dd1 /src/libexpr/eval.cc | |
parent | 93e9307329567c9f181318c4d4d6dc09de20ea48 (diff) |
convenience form of addTrace
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r-- | src/libexpr/eval.cc | 6 |
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); } |