diff --git a/zpay32/invoice.go b/zpay32/invoice.go index 091ca30b9..fc9f7d81c 100644 --- a/zpay32/invoice.go +++ b/zpay32/invoice.go @@ -290,7 +290,8 @@ func Decode(invoice string, net *chaincfg.Params) (*Invoice, error) { // The next characters should be a valid prefix for a segwit BIP173 // address that match the active network. if !strings.HasPrefix(hrp[2:], net.Bech32HRPSegwit) { - return nil, fmt.Errorf("unknown network") + return nil, fmt.Errorf( + "invoice not for current active network '%s'", net.Name) } decodedInvoice.Net = net