@@ -21,7 +21,7 @@ import Data.Version
2121import Data.Maybe
2222import Data.Monoid
2323import Data.Foldable (foldMap)
24−import Data.List (intersperse)
24+import Data.List (intersperse, intercalate)
2525import Data.List.NonEmpty (NonEmpty(..))
2626import qualified Data.List.NonEmpty as NonEmpty
2727
@@ -53,7 +53,7 @@ data PackageWarning
5353-- | An error that should be fixed by the user.
5454data UserError
5555 = BowerJSONNotFound
56− | BowerExecutableNotFound
56+ | BowerExecutableNotFound [String] -- list of executable names tried
5757 | CouldntParseBowerJSON (ParseError BowerError)
5858 | BowerJSONNameMissing
5959 | TagMustBeCheckedOut
@@ -122,11 +122,13 @@ displayUserError e = case e of
122122 [ "The bower.json file was not found. Please create one, or run "
123123 , "`pulp init`."
124124 ])
125− BowerExecutableNotFound ->
125+ BowerExecutableNotFound names ->
126126 para (concat
127− [ "The \"bower\" executable was not found (nor \"bower.cmd\"). Please"
127+ [ "The Bower executable was not found (tried: ", format names, "). Please"
128128 , " ensure that bower is installed and on your PATH."
129129 ])
130+ where
131+ format = intercalate ", " . map show
130132 CouldntParseBowerJSON err ->
131133 vcat
132134 [ successivelyIndented