Cleanup minio, remote struct printing for Info, Error and Fatal - simplifying overall error handling

This commit is contained in:
Harshavardhana
2015-07-14 11:02:04 -07:00
parent 1aa3496142
commit d4047ca899
18 changed files with 112 additions and 315 deletions
-18
View File
@@ -126,13 +126,6 @@ var (
return
}
// Fatals print a error structure with a new line and exit
Fatals = func(data ...interface{}) {
defer os.Exit(1)
println(themesDB[currThemeName].Error, data...)
return
}
// Error prints a error message
Error = func(data ...interface{}) {
print(themesDB[currThemeName].Error, data...)
@@ -151,11 +144,6 @@ var (
return
}
// Errors print a error structure with a new line
Errors = func(data ...interface{}) {
println(themesDB[currThemeName].Error, data...)
}
// Info prints a informational message
Info = func(data ...interface{}) {
print(themesDB[currThemeName].Info, data...)
@@ -174,12 +162,6 @@ var (
return
}
// Infos print a informational structured message
Infos = func(data ...interface{}) {
println(themesDB[currThemeName].Info, data...)
return
}
// Debug prints a debug message without a new line
// Debug prints a debug message
Debug = func(data ...interface{}) {