mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
Cleanup panic with println and add typical catch-all exit status
This commit is contained in:
parent
7965cece7f
commit
09ed9f6cda
1 changed files with 3 additions and 1 deletions
4
main.go
4
main.go
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue