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
072e4728
Commit
072e4728
authored
Dec 28, 2015
by
Edward Z. Yang
Browse files
Try to give a more helpful error message when we can't read LBI.
Signed-off-by:
Edward Z. Yang
<
ezyang@cs.stanford.edu
>
parent
1850acee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Cabal/tests/PackageTests.hs
View file @
072e4728
...
...
@@ -210,6 +210,10 @@ getPersistBuildConfig_ filename = do
eLBI
<-
try
$
getConfigStateFile
filename
case
eLBI
of
Left
(
ConfigStateFileBadVersion
_
_
(
Right
lbi
))
->
return
lbi
Left
(
ConfigStateFileBadVersion
_
_
(
Left
err
))
->
throw
err
Left
(
ConfigStateFileBadVersion
_
_
(
Left
err
))
->
error
$
"We couldn't understand the build configuration. Try "
++
"building Cabal with a more recent version of itself "
++
"and then running the test suite.
\n\n
Original error: "
++
show
err
Left
err
->
throw
err
Right
lbi
->
return
lbi
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