aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-10-29 17:11:22 +0100
committerEelco Dolstra <edolstra@gmail.com>2017-10-29 17:11:22 +0100
commitc1ae18941a222d51a47d4971f4bc4cbc5dea449a (patch)
treea10e7a71290c21642c886f4fb23a1802600f5c84 /src/libexpr
parent9971d875a462bc393724220f468825eca9e5c38a (diff)
nix repl :t: Indicate strings that have a context
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/eval.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc
index 78f6b0010..548537b72 100644
--- a/src/libexpr/eval.cc
+++ b/src/libexpr/eval.cc
@@ -149,7 +149,7 @@ string showType(const Value & v)
switch (v.type) {
case tInt: return "an integer";
case tBool: return "a boolean";
- case tString: return "a string";
+ case tString: return v.string.context ? "a string with context" : "a string";
case tPath: return "a path";
case tNull: return "null";
case tAttrs: return "a set";