Move from Fatal/Error to fatalIf/errorIf

This commit is contained in:
Harshavardhana
2015-08-09 22:41:49 -07:00
parent f1589263e7
commit ae2a20dffc
18 changed files with 63 additions and 63 deletions
+4 -4
View File
@@ -21,8 +21,8 @@ import (
"github.com/minio/mc/pkg/probe"
)
// Fatal wrapper function which takes error and selectively prints stack frames if available on debug
func Fatal(err *probe.Error) {
// fatalIf wrapper function which takes error and selectively prints stack frames if available on debug
func fatalIf(err *probe.Error) {
if err == nil {
return
}
@@ -32,8 +32,8 @@ func Fatal(err *probe.Error) {
console.Fatalln(err)
}
// Error synonymous with Fatal but doesn't exit on error != nil
func Error(err *probe.Error) {
// errorIf synonymous with fatalIf but doesn't exit on error != nil
func errorIf(err *probe.Error) {
if err == nil {
return
}