Proper error message

This commit is contained in:
Daniel A. Nagy 2015-02-12 17:52:15 +01:00
parent c203724132
commit cb18316315

View file

@ -210,7 +210,7 @@ func (self *bzzProtocol) handle() error {
}
dpaLogger.Warnf("Request message: %#v", req)
if req.Key == nil || req.Timeout == nil {
return self.protoError(ErrDecode, "protocol handler: req.Key == nil")
return self.protoError(ErrDecode, "protocol handler: req.Key == nil || req.Timeout == nil")
}
req.peer = peer{bzzProtocol: self}
self.netStore.addRetrieveRequest(&req)