From 6a1176f84479d027ff184285f6615815c4a862fc Mon Sep 17 00:00:00 2001 From: vyzo Date: Fri, 20 Apr 2018 19:20:04 +0300 Subject: [PATCH] annotate registration error --- proto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proto.go b/proto.go index cb29a69..1b1ae0e 100644 --- a/proto.go +++ b/proto.go @@ -16,7 +16,7 @@ const ( type RegistrationError pb.Message_RegisterStatus func (e RegistrationError) Error() string { - return pb.Message_RegisterStatus(e).String() + return "Registration error: " + pb.Message_RegisterStatus(e).String() } func newRegisterMessage(ns string, pi pstore.PeerInfo, ttl int) *pb.Message {