1
0
mirror of https://github.com/minio/mc.git synced 2025-11-12 01:02:26 +03:00

Change diff command properly to send messages over channels

This commit is contained in:
Harshavardhana
2015-05-20 00:45:00 -07:00
parent 55d039d122
commit c8a60e3781
6 changed files with 241 additions and 144 deletions

View File

@@ -421,7 +421,7 @@ func prepareCopyURLs(sourceURLs []string, targetURL string) <-chan *cpURLs {
cpURLsCh <- cpURLs
}
default:
cpURLsCh <- &cpURLs{Error: iodine.New(errors.New("Invalid arguments."), nil)}
cpURLsCh <- &cpURLs{Error: iodine.New(errInvalidArgument{}, nil)}
}
}(sourceURLs, targetURL, cpURLsCh)