Removing unnecessary error suppression code from cat

This commit is contained in:
Frederick F. Kautz IV
2015-04-23 20:54:43 -07:00
parent 54e8b2d422
commit 5da118366a
+1 -5
View File
@@ -62,11 +62,7 @@ func runCatCmd(ctx *cli.Context) {
humanReadable, err := doCatCmd(mcClientManager{}, os.Stdout, sourceURLConfigMap, globalDebugFlag)
if err != nil {
log.Debug.Println(iodine.New(err, nil))
if humanReadable != "" {
console.Fatalln(humanReadable)
} else {
os.Exit(1)
}
console.Fatalln(humanReadable)
}
}