1
0
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:
Harshavardhana
2015-06-11 14:36:35 -07:00
parent 0f14199a2b
commit dae79df316
4 changed files with 17 additions and 28 deletions

View File

@@ -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."
}