From 6c96d5662488ddeee66cb85e30cf858a05292f1d Mon Sep 17 00:00:00 2001 From: mleku Date: Mon, 5 Aug 2024 13:36:12 +0100 Subject: [PATCH] put a return in the function instead of exit --- wordstr/wordstr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wordstr/wordstr.go b/wordstr/wordstr.go index 91f8d9c..69deb11 100644 --- a/wordstr/wordstr.go +++ b/wordstr/wordstr.go @@ -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