Skip to content

Commit eb60c44

Browse files
committed
Show faulty string in fromStringNoContext error
1 parent 95179df commit eb60c44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nix/Exec.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ execBinaryOpForced scope span op lval rval = case op of
478478
fromStringNoContext :: Framed e m => NixString -> m Text
479479
fromStringNoContext ns = case principledGetStringNoContext ns of
480480
Just str -> pure str
481-
Nothing -> throwError $ ErrorCall "expected string with no context"
481+
Nothing -> throwError $ ErrorCall $ "expected string with no context, but got " ++ show ns
482482

483483
addTracing
484484
:: (MonadNix e t f m, Has e Options, MonadReader Int n, Alternative n)

0 commit comments

Comments
 (0)