1
0
mirror of https://github.com/minio/mc.git synced 2025-11-14 23:42:27 +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

@@ -16,11 +16,7 @@
package main
import (
"errors"
"github.com/minio/minio/pkg/iodine"
)
import "github.com/minio/minio/pkg/iodine"
//
// NOTE: All the parse rules should reduced to A: Copy(Source, Target).
@@ -65,7 +61,7 @@ func prepareSyncURLs(sourceURL string, targetURLs []string) <-chan *cpURLs {
syncURLsCh <- syncURLs
}
default:
syncURLsCh <- &cpURLs{Error: iodine.New(errors.New("Invalid arguments."), nil)}
syncURLsCh <- &cpURLs{Error: iodine.New(errInvalidArgument{}, nil)}
}
}
}()