Returning right after doCopy error, we should just print the error and move forward
This commit is contained in:
@@ -134,7 +134,6 @@ func runCopyCmd(ctx *cli.Context) {
|
||||
}
|
||||
if err := doCopy(cpURLs.SourceContent.Name, srcConfig, cpURLs.TargetContent.Name, tgtConfig, &bar); err != nil {
|
||||
console.Errorln(iodine.ToError(err))
|
||||
return
|
||||
}
|
||||
<-cpQueue
|
||||
}(*cpURLs)
|
||||
|
||||
@@ -93,7 +93,6 @@ func runSyncCmd(ctx *cli.Context) {
|
||||
}
|
||||
if err := doCopy(syncURLs.SourceContent.Name, srcConfig, syncURLs.TargetContent.Name, tgtConfig, &bar); err != nil {
|
||||
console.Errorln(iodine.ToError(err))
|
||||
return
|
||||
}
|
||||
<-syncQueue
|
||||
}(*syncURLs)
|
||||
|
||||
Reference in New Issue
Block a user