mirror of
https://github.com/minio/mc.git
synced 2025-11-14 23:42:27 +03:00
removed copy-same-object check and some cleanup
This commit is contained in:
21
errors.go
21
errors.go
@@ -93,11 +93,11 @@ func (e errAliasExists) Error() string {
|
||||
|
||||
/*
|
||||
type errIsNotBucket struct {
|
||||
path string
|
||||
URL string
|
||||
}
|
||||
|
||||
func (e errIsNotBucket) Error() string {
|
||||
return "Not a bucket " + e.path
|
||||
return "Not a bucket " + e.URL
|
||||
}
|
||||
|
||||
// errInvalidAuthKeys - invalid authorization keys
|
||||
@@ -110,26 +110,17 @@ func (e errInvalidAuthKeys) Error() string {
|
||||
*/
|
||||
|
||||
type errInvalidSource struct {
|
||||
path string
|
||||
URL string
|
||||
}
|
||||
|
||||
func (e errInvalidSource) Error() string {
|
||||
return "Invalid source " + e.path
|
||||
return "Invalid source " + e.URL
|
||||
}
|
||||
|
||||
type errInvalidTarget struct {
|
||||
path string
|
||||
URL string
|
||||
}
|
||||
|
||||
func (e errInvalidTarget) Error() string {
|
||||
return "Invalid target " + e.path
|
||||
}
|
||||
|
||||
type errSameURLs struct {
|
||||
source string
|
||||
target string
|
||||
}
|
||||
|
||||
func (e errSameURLs) Error() string {
|
||||
return "Source " + e.source + " and Target " + e.target + " are same"
|
||||
return "Invalid target " + e.URL
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user