diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-10-29T16·11+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-10-29T16·11+0100 |
commit | c1ae18941a222d51a47d4971f4bc4cbc5dea449a (patch) | |
tree | a10e7a71290c21642c886f4fb23a1802600f5c84 /src/libexpr/eval.cc | |
parent | 9971d875a462bc393724220f468825eca9e5c38a (diff) |
nix repl :t: Indicate strings that have a context
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r-- | src/libexpr/eval.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 78f6b0010523..548537b72ced 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"; |