Minor change print proper errors for cmd-sync

This commit is contained in:
Harshavardhana
2015-06-10 10:46:00 -07:00
parent d4e0bb275f
commit c0bd41f446
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ func doCopy(sourceURL string, targetURL string, bar *barSend) error {
if !globalQuietFlag {
bar.ErrorPut(int64(length))
}
return iodine.New(err, nil)
return iodine.New(err, map[string]string{"URL": targetURL})
}
return nil
}
+4
View File
@@ -100,6 +100,10 @@ func doSync(sURLs syncURLs, bar *barSend) error {
if !globalQuietFlag {
bar.ErrorPut(int64(length))
}
console.Errors(ErrorMessage{
Message: "Failed with",
Error: iodine.New(err, nil),
})
}
}
return nil