Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
Packages
Cabal
Commits
ea2b3454
Commit
ea2b3454
authored
Nov 11, 2013
by
Mikhail Glushenkov
Browse files
Clarify an error message.
parent
e3603acd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/Distribution/Simple/Program/Db.hs
View file @
ea2b3454
...
...
@@ -302,8 +302,10 @@ configureProgram verbosity prog conf = do
then
return
(
Just
(
UserSpecified
path
))
else
findProgramOnSearchPath
verbosity
(
progSearchPath
conf
)
path
>>=
maybe
(
die
notFound
)
(
return
.
Just
.
UserSpecified
)
where
notFound
=
"Cannot find the program '"
++
name
++
"' at '"
++
path
++
"' or on the path"
where
notFound
=
"Cannot find the program '"
++
name
++
"'. User-specified path '"
++
path
++
"' does not refer to an executable and "
++
"the program is not on the system path."
case
maybeLocation
of
Nothing
->
return
conf
Just
location
->
do
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment