mirror of
https://github.com/minio/mc.git
synced 2025-11-14 23:42:27 +03:00
Copy rewrite
This commit is contained in:
16
errors.go
16
errors.go
@@ -91,6 +91,7 @@ func (e errAliasExists) Error() string {
|
||||
return "Alias name: " + e.name + " exists"
|
||||
}
|
||||
|
||||
/*
|
||||
type errIsNotBucket struct {
|
||||
path string
|
||||
}
|
||||
@@ -99,6 +100,15 @@ func (e errIsNotBucket) Error() string {
|
||||
return "Not a bucket " + e.path
|
||||
}
|
||||
|
||||
// errInvalidAuthKeys - invalid authorization keys
|
||||
type errInvalidAuthKeys struct {
|
||||
}
|
||||
|
||||
func (e errInvalidAuthKeys) Error() string {
|
||||
return "Invalid authorization keys"
|
||||
}
|
||||
*/
|
||||
|
||||
type errInvalidSource struct {
|
||||
path string
|
||||
}
|
||||
@@ -107,10 +117,10 @@ func (e errInvalidSource) Error() string {
|
||||
return "Invalid source " + e.path
|
||||
}
|
||||
|
||||
type errIsNotFolder struct {
|
||||
type errInvalidTarget struct {
|
||||
path string
|
||||
}
|
||||
|
||||
func (e errIsNotFolder) Error() string {
|
||||
return "Not a folder " + e.path
|
||||
func (e errInvalidTarget) Error() string {
|
||||
return "Invalid source " + e.path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user