put a return in the function instead of exit

This commit is contained in:
2024-08-05 13:36:12 +01:00
parent 3e5a36669c
commit 6c96d56624

View File

@@ -30,7 +30,7 @@ func FromNsec(nsec string) (words string, err error) {
if len(nsec) == 2*secp256k1.SecKeyBytesLen {
if sk, err = hex.DecodeString(nsec); err != nil {
fmt.Fprintf(os.Stderr, "failed to decode nsec from hex form: %s\n", err)
os.Exit(1)
return
}
} else {
var prf string