From 19790fd1fcec79ade119612cb8279ab17ea5fc2f Mon Sep 17 00:00:00 2001 From: Guillaume Maudoux Date: Sun, 10 May 2020 01:49:05 +0200 Subject: [PATCH] Show faulty string in fromStringNoContext error --- src/Nix/Exec.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Nix/Exec.hs b/src/Nix/Exec.hs index f93e461..e7fb0c2 100644 --- a/src/Nix/Exec.hs +++ b/src/Nix/Exec.hs @@ -478,7 +478,7 @@ execBinaryOpForced scope span op lval rval = case op of fromStringNoContext :: Framed e m => NixString -> m Text fromStringNoContext ns = case principledGetStringNoContext ns of Just str -> pure str - Nothing -> throwError $ ErrorCall "expected string with no context" + Nothing -> throwError $ ErrorCall $ "expected string with no context, but got " ++ show ns addTracing :: (MonadNix e t f m, Has e Options, MonadReader Int n, Alternative n)