Merge pull request #17 from picatz/cleanup-root-error

Cleanup panic with println and add typical catch-all exit status
This commit is contained in:
Simone Margaritelli 2018-01-13 21:56:20 +01:00 committed by GitHub
commit e07c555cc8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@ package main
import (
"fmt"
"os"
"runtime"
"strings"
@ -16,7 +17,8 @@ var err error
func main() {
if sess, err = session.New(); err != nil {
panic(err)
fmt.Println(err)
os.Exit(1)
}
fmt.Printf("%s v%s\n", core.Name, core.Version)