summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-07-30 15:57:19 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-07-30 15:57:19 -0400
commita2626b6b247eaa6fa24e9f8fe1166ccd0a19b079 (patch)
tree20d6a8b1a09feadb4513c1c03940f22908986fae
parent8c2e87e0f2342b34c920422fdf18484664753b16 (diff)
Display exception message when a transfer fails due to an exception.
For example, I had a copy to a remote that was failing for an unknown reason. This let me see the exception was createDirectory: permission denied; the underlying problem being a permissions issue.
-rw-r--r--Annex/Transfer.hs3
-rw-r--r--debian/changelog1
2 files changed, 3 insertions, 1 deletions
diff --git a/Annex/Transfer.hs b/Annex/Transfer.hs
index df5aba09c..001539adc 100644
--- a/Annex/Transfer.hs
+++ b/Annex/Transfer.hs
@@ -106,7 +106,8 @@ runTransfer t file shouldretry a = do
v <- tryAnnex run
case v of
Right b -> return b
- Left _ -> do
+ Left e -> do
+ warning (show e)
b <- getbytescomplete metervar
let newinfo = oldinfo { bytesComplete = Just b }
if shouldretry oldinfo newinfo
diff --git a/debian/changelog b/debian/changelog
index bbdea7b7b..7b743b711 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ git-annex (5.20140718) UNRELEASED; urgency=medium
Fix this, including support for fixing up repositories that
were incompletely repaired before.
* Fix cost calculation for non-encrypted remotes.
+ * Display exception message when a transfer fails due to an exception.
-- Joey Hess <joeyh@debian.org> Mon, 21 Jul 2014 14:41:26 -0400