Skip to content

Commit

Permalink
Merge pull request #5263 from commercialhaskell/better-debug-info
Browse files Browse the repository at this point in the history
Better debug info for invariant violated
  • Loading branch information
snoyberg authored Apr 21, 2020
2 parents 6c72c37 + fffc0a4 commit e4ba0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Stack/Build/Execute.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1783,7 +1783,7 @@ singleBuild ac@ActionContext {..} ee@ExecuteEnv {..} task@Task {..} installedMap
[dp] -> do
liftIO $ atomically $ modifyTVar' tvar (Map.insert (dpGhcPkgId dp) dp)
return $ Just (dpGhcPkgId dp)
_ -> error "singleBuild: invariant violated: multiple results when describing installed package"
_ -> error $ "singleBuild: invariant violated: multiple results when describing installed package " ++ show (name, dps)

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

0 comments on commit e4ba0b4

Please sign in to comment.