mirror of
https://github.com/minio/mc.git
synced 2025-11-16 11:02:34 +03:00
Add errInvalidTheme and .Before should reply back to cli as error
This commit is contained in:
26
errors.go
26
errors.go
@@ -91,24 +91,6 @@ func (e errAliasExists) Error() string {
|
||||
return "Alias name: " + e.name + " exists"
|
||||
}
|
||||
|
||||
/*
|
||||
type errIsNotBucket struct {
|
||||
URL string
|
||||
}
|
||||
|
||||
func (e errIsNotBucket) Error() string {
|
||||
return "Not a bucket " + e.URL
|
||||
}
|
||||
|
||||
// errInvalidAuthKeys - invalid authorization keys
|
||||
type errInvalidAuthKeys struct {
|
||||
}
|
||||
|
||||
func (e errInvalidAuthKeys) Error() string {
|
||||
return "Invalid authorization keys"
|
||||
}
|
||||
*/
|
||||
|
||||
type errInvalidSource struct {
|
||||
URL string
|
||||
}
|
||||
@@ -124,3 +106,11 @@ type errInvalidTarget struct {
|
||||
func (e errInvalidTarget) Error() string {
|
||||
return "Invalid target " + e.URL
|
||||
}
|
||||
|
||||
type errInvalidTheme struct {
|
||||
Theme string
|
||||
}
|
||||
|
||||
func (e errInvalidTheme) Error() string {
|
||||
return "Theme " + e.Theme + " is not supported."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user