Repository : ssh://darcs.haskell.org//srv/darcs/packages/Cabal

On branch  : 

http://hackage.haskell.org/trac/ghc/changeset/1a2aa6b491be9baf5055465c9621eae00864d594

>---------------------------------------------------------------

commit 1a2aa6b491be9baf5055465c9621eae00864d594
Author: Duncan Coutts <[email protected]>
Date:   Tue Dec 22 13:25:26 2009 +0000

    Display the exception for failed downloads
    Not great but better than nothing.

>---------------------------------------------------------------

 cabal-install/Distribution/Client/Install.hs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/cabal-install/Distribution/Client/Install.hs 
b/cabal-install/Distribution/Client/Install.hs
index bc0dd13..f8927f3 100644
--- a/cabal-install/Distribution/Client/Install.hs
+++ b/cabal-install/Distribution/Client/Install.hs
@@ -558,7 +558,8 @@ printBuildFailures plan =
     printFailureReason reason = case reason of
       DependentFailed pkgid -> " depends on " ++ display pkgid
                             ++ " which failed to install."
-      DownloadFailed  _ -> " failed while downloading the package."
+      DownloadFailed  e -> " failed while downloading the package."
+                        ++ " The exception was:\n  " ++ show e
       UnpackFailed    e -> " failed while unpacking the package."
                         ++ " The exception was:\n  " ++ show e
       ConfigureFailed e -> " failed during the configure step."



_______________________________________________
Cvs-libraries mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-libraries

Reply via email to