return non-zero exit code in case of session failure

This commit is contained in:
Anand Babu (AB) Periasamy
2016-01-08 09:55:13 -08:00
parent 35cdba2204
commit 8a91ec65ce
+1 -2
View File
@@ -321,8 +321,7 @@ func (s *sessionV6) Delete() *probe.Error {
// Close a session and exit.
func (s sessionV6) CloseAndDie() {
s.Close()
console.Infoln("Session safely terminated. To resume session ‘mc session resume " + s.SessionID + "’")
os.Exit(0)
console.Fatalln("Session safely terminated. To resume session ‘mc session resume " + s.SessionID + "’")
}
// Create a factory function to simplify checking if an