Minor change print proper errors for cmd-sync
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user