Merge pull request #763 from harshavardhana/pr_out_minor_change_print_proper_errors_for_cmd_sync

Minor change print proper errors for cmd-sync
This commit is contained in:
Harshavardhana
2015-06-10 10:48:46 -07:00
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