From 5d733f02739c45a41cc86f4c34dce3d9a850fe3a Mon Sep 17 00:00:00 2001 From: Tom Denham Date: Wed, 12 Apr 2017 14:55:19 -0700 Subject: [PATCH] subnet/etcdv2: Fix panic from bad error contruction Fixes #657 --- subnet/etcdv2/registry.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subnet/etcdv2/registry.go b/subnet/etcdv2/registry.go index 18fa40b4f5..2b8edecaa5 100644 --- a/subnet/etcdv2/registry.go +++ b/subnet/etcdv2/registry.go @@ -397,7 +397,7 @@ func (esr *etcdSubnetRegistry) parseNetworkKey(s string) (string, bool) { func nodeToLease(node *etcd.Node) (*Lease, error) { sn := ParseSubnetKey(node.Key) if sn == nil { - return nil, fmt.Errorf("failed to parse subnet key %q", *sn) + return nil, fmt.Errorf("failed to parse subnet key %s", node.Key) } attrs := &LeaseAttrs{}