aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/nixexpr.cc
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-06-18 13:07:53 -0600
committerBen Burdette <bburdette@gmail.com>2020-06-18 13:07:53 -0600
commite6f93b94fc38d94827778bcaa64642aee5030ecd (patch)
treeaa80872b4ed72abc548a41f52ec876be76fc85a0 /src/libexpr/nixexpr.cc
parent2f19650768e2bbef0f7ad819c5aa3dce5084d56d (diff)
parent6c000eed80565d83d596da800ca0db92e248342e (diff)
Merge branch 'master' into caveman-LOCs
Diffstat (limited to 'src/libexpr/nixexpr.cc')
-rw-r--r--src/libexpr/nixexpr.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/libexpr/nixexpr.cc b/src/libexpr/nixexpr.cc
index 6ab36dd35..d4e179008 100644
--- a/src/libexpr/nixexpr.cc
+++ b/src/libexpr/nixexpr.cc
@@ -282,12 +282,11 @@ void ExprVar::bindVars(const StaticEnv & env)
/* Otherwise, the variable must be obtained from the nearest
enclosing `with'. If there is no `with', then we can issue an
"undefined variable" error now. */
- if (withLevel == -1)
- throw UndefinedVarError(
- ErrorInfo {
- .hint = hintfmt("undefined variable '%1%'", name),
- .nixCode = NixCode { .errPos = pos }
- });
+ if (withLevel == -1)
+ throw UndefinedVarError({
+ .hint = hintfmt("undefined variable '%1%'", name),
+ .nixCode = NixCode { .errPos = pos }
+ });
fromWith = true;
this->level = withLevel;
}