Skip to content

Commit fffc0a4

Browse files
committed
Better debug info for invariant violated
1 parent 6c72c37 commit fffc0a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Stack/Build/Execute.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1783,7 +1783,7 @@ singleBuild ac@ActionContext {..} ee@ExecuteEnv {..} task@Task {..} installedMap
17831783
[dp] -> do
17841784
liftIO $ atomically $ modifyTVar' tvar (Map.insert (dpGhcPkgId dp) dp)
17851785
return $ Just (dpGhcPkgId dp)
1786-
_ -> error "singleBuild: invariant violated: multiple results when describing installed package"
1786+
_ -> error $ "singleBuild: invariant violated: multiple results when describing installed package " ++ show (name, dps)
17871787

17881788
-- | Get the build status of all the package executables. Do so by
17891789
-- testing whether their expected output file exists, e.g.

0 commit comments

Comments
 (0)