1
0
mirror of https://github.com/minio/mc.git synced 2025-11-14 23:42:27 +03:00

Make sure to properly exit if requested theme not available, also re-structure console package a bit

This commit is contained in:
Harshavardhana
2015-04-20 13:19:24 -07:00
parent 0c7805e65f
commit af1cb1b478
3 changed files with 67 additions and 57 deletions

View File

@@ -25,7 +25,7 @@ import (
type errInvalidArgument struct{}
func (e errInvalidArgument) Error() string {
return "invalid argument"
return "Invalid argument"
}
type errUnsupportedScheme struct {
@@ -50,7 +50,7 @@ type errInvalidGlobURL struct {
}
func (e errInvalidGlobURL) Error() string {
return "Error parsing glob'ed URL while comparing " + e.glob + " " + e.request
return "Error reading glob URL " + e.glob + " while comparing with " + e.request
}
type errInvalidAliasName struct {
@@ -58,13 +58,13 @@ type errInvalidAliasName struct {
}
func (e errInvalidAliasName) Error() string {
return "Not a valid alias name: " + e.name + " Valid examples are: Area51, Grand-Nagus.."
return "Not a valid alias name: " + e.name + " valid examples are: Area51, Grand-Nagus.."
}
type errInvalidAuth struct{}
func (e errInvalidAuth) Error() string {
return "invalid auth keys"
return "Invalid auth keys"
}
type errNoMatchingHost struct{}
@@ -85,12 +85,12 @@ type errAliasExists struct {
}
func (e errAliasExists) Error() string {
return fmt.Sprintf("alias: %s exists", e.name)
return "Alias name: " + e.name + " exists"
}
// errInvalidAuthKeys - invalid authorization keys
type errInvalidAuthKeys struct{}
func (e errInvalidAuthKeys) Error() string {
return "invalid authorization keys"
return "Invalid authorization keys"
}