diff --git a/cmd-cp.go b/cmd-cp.go index 84def440..181ef512 100644 --- a/cmd-cp.go +++ b/cmd-cp.go @@ -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 } diff --git a/cmd-sync.go b/cmd-sync.go index 93333216..418d5d92 100644 --- a/cmd-sync.go +++ b/cmd-sync.go @@ -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