Skip to content

Commit

Permalink
Try to make error message more obvious
Browse files Browse the repository at this point in the history
Previously,

    Dependency on unbuildable library from darcs
    In the stanza 'test-suite darcs-test'
    In the inplace package 'darcs-2.11.0'

With this patch,

    Dependency on unbuildable (i.e. 'buildable: False') library from darcs
    In the stanza 'test-suite darcs-test'
    In the inplace package 'darcs-2.11.0'
  • Loading branch information
hvr authored and 23Skidoo committed Jun 10, 2018
1 parent 1c28c09 commit b123913
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cabal/Distribution/Backpack/ConfiguredComponent.hs
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ toConfiguredComponent pkg_descr this_cid dep_map component = do
value <- case Map.lookup cn =<< Map.lookup pn dep_map of
Nothing ->
dieProgress $
text "Dependency on unbuildable" <+>
text "Dependency on unbuildable (i.e. 'buildable: False')" <+>
text (showComponentName cn) <+>
text "from" <+> disp pn
Just v -> return v
Expand Down

0 comments on commit b123913

Please sign in to comment.