From 0dcb620194e9f788f5adedba6e8e13ce8830e2d8 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Tue, 3 Oct 2017 16:41:19 -0700 Subject: [PATCH] utxonursery_test: properly print error msg during init failure --- utxonursery_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utxonursery_test.go b/utxonursery_test.go index b7cc87d7..2d7b9560 100644 --- a/utxonursery_test.go +++ b/utxonursery_test.go @@ -4,6 +4,7 @@ package main import ( "bytes" + "fmt" "reflect" "testing" @@ -273,11 +274,12 @@ var ( ) func init() { + // Finish initializing our test vectors by parsing the desired public keys and + // properly populating the sign descriptors of all baby and kid outputs. for i := range signDescriptors { - pk, err := btcec.ParsePubKey(keys[i], btcec.S256()) if err != nil { - panic("unable to parse pub key: %v") + panic(fmt.Sprintf("unable to parse pub key during init: %v", err)) } signDescriptors[i].PubKey = pk