Skip to content

Commit 90ee508

Browse files
committed
Clarify string coercion errors
1 parent 6b55b9a commit 90ee508

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/Nix/Convert.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ instance ( Convertible e t f m
205205
(M.lookup "outPath" s)
206206
_ -> stub
207207

208-
fromValue = fromMayToValue $ TString NoContext
208+
fromValue = fromMayToValue $ TString HasContext
209209

210210
instance Convertible e t f m
211211
=> FromValue ByteString m (NValue' t f m (NValue t f m)) where

src/Nix/Value.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -754,8 +754,8 @@ describeValue =
754754
TFloat -> "a float"
755755
TBool -> "a boolean"
756756
TNull -> "a null"
757-
TString NoContext -> "a string"
758-
TString HasContext -> "a string with context"
757+
TString NoContext -> "a string with no context"
758+
TString HasContext -> "a string"
759759
TList -> "a list"
760760
TSet -> "an attr set"
761761
TClosure -> "a function"

0 commit comments

Comments
 (0)