@@ -21,7 +21,7 @@ import Data.Version
21import Data.Maybe
21import Data.Maybe
22import Data.Monoid
22import Data.Monoid
23import Data.Foldable (foldMap)
23import Data.Foldable (foldMap)
24−import Data.List (intersperse)
24+import Data.List (intersperse, intercalate)
25import Data.List.NonEmpty (NonEmpty(..))
25import Data.List.NonEmpty (NonEmpty(..))
26import qualified Data.List.NonEmpty as NonEmpty
26import qualified Data.List.NonEmpty as NonEmpty
@@ -53,7 +53,7 @@ data PackageWarning
53-- | An error that should be fixed by the user.
53-- | An error that should be fixed by the user.
54data UserError
54data UserError
55 = BowerJSONNotFound
55 = BowerJSONNotFound
56− | BowerExecutableNotFound
56+ | BowerExecutableNotFound [String] -- list of executable names tried
57 | CouldntParseBowerJSON (ParseError BowerError)
57 | CouldntParseBowerJSON (ParseError BowerError)
58 | BowerJSONNameMissing
58 | BowerJSONNameMissing
59 | TagMustBeCheckedOut
59 | TagMustBeCheckedOut
@@ -122,11 +122,13 @@ displayUserError e = case e of
122 [ "The bower.json file was not found. Please create one, or run "
122 [ "The bower.json file was not found. Please create one, or run "
123 , "`pulp init`."
123 , "`pulp init`."
125− BowerExecutableNotFound ->
125+ BowerExecutableNotFound names ->
126 para (concat
126 para (concat
127− [ "The \"bower\" executable was not found (nor \"bower.cmd\"). Please"
127+ [ "The Bower executable was not found (tried: ", format names, "). Please"
128 , " ensure that bower is installed and on your PATH."
128 , " ensure that bower is installed and on your PATH."
131+ format = intercalate ", " . map show
130 CouldntParseBowerJSON err ->
132 CouldntParseBowerJSON err ->
132 [ successivelyIndented
134 [ successivelyIndented