Skip to content
Snippets Groups Projects
Commit 90dfec26 authored by Edward Z. Yang's avatar Edward Z. Yang Committed by Edward Z. Yang
Browse files

More clearly demarcate multiple errors.


Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
parent 32e9feb0
No related branches found
No related tags found
No related merge requests found
......@@ -144,8 +144,10 @@ toLinkedComponent verbosity db this_pid pkg_map ConfiguredComponent {
(Map.lookup cid pkg_map)
let orErr (Right x) = return x
orErr (Left [err]) = dieProgress err
orErr (Left errs) = do
dieProgress (vcat (intersperse (text "") errs))
dieProgress (vcat (intersperse (text "") -- double newline!
[ hang (text "-") 2 err | err <- errs]))
-- OK, actually do unification
-- TODO: the unification monad might return errors, in which
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment