@cryptotaxi247 / kubo / commits / 73a711b2d

make: revert the panic change in pin

License: MIT Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>

Jakub Sztandera committed Dec 20, 2016 at 20:20 UTC 73a711b2df211b5a9aca4a3efcf1503da76adc09
1 file changed +3 -3
pin/pin.go
+3 -3
@@ -5,6 +5,7 @@ package pin
5 import (
6 "context"
7 "fmt"
8 + "os"
9 "sync"
10 "time"
11
@@ -25,9 +26,8 @@ var emptyKey *cid.Cid
26 func init() {
27 e, err := cid.Decode("QmdfTbBqBPQ7VNxZEYEj14VmRuZBkqFbiwReogJgS1zR1n")
28 if err != nil {
28 - msg := "failed to decode empty key constant"
29 - log.Error(msg)
30 - panic(msg)
29 + log.Error("failed to decode empty key constant")
30 + os.Exit(1)
31 }
32 emptyKey = e
33 }