5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-25 23:01:38 +00:00

Don't panic

This commit is contained in:
Neil Alexander 2018-12-17 10:19:20 +00:00
parent 83d734e109
commit 422424af64
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -30,7 +30,6 @@ func main() {
if r := recover(); r != nil { if r := recover(); r != nil {
logger.Println("Fatal error:", r) logger.Println("Fatal error:", r)
fmt.Print(logbuffer) fmt.Print(logbuffer)
panic(r)
os.Exit(1) os.Exit(1)
} }
}() }()
@ -201,7 +200,7 @@ func main() {
if !keysOrdered { if !keysOrdered {
for k := range slv.(map[string]interface{}) { for k := range slv.(map[string]interface{}) {
if !*verbose { if !*verbose {
if k == "box_pub_key" || k == "box_sig_key" { if k == "box_pub_key" || k == "box_sig_key" || k == "nodeinfo" {
continue continue
} }
} }