Make the RPCVersionCapError message clearer
It is confusing to report that the version cap is too low, rather we should report that the message version is too high. Change-Id: Ic37eabb6f211fb68ca567ed4c400a1314e25cc68
This commit is contained in:
parent
554ad9d035
commit
4e6dabb698
@ -63,8 +63,8 @@ class RPCVersionCapError(exceptions.MessagingException):
|
||||
def __init__(self, version, version_cap):
|
||||
self.version = version
|
||||
self.version_cap = version_cap
|
||||
msg = ("Specified RPC version cap, %(version_cap)s, is too low. "
|
||||
"Needs to be higher than %(version)s." %
|
||||
msg = ("Requested message version, %(version)s is too high. It needs "
|
||||
"to be lower than the specified version cap %(version_cap)s." %
|
||||
dict(version=self.version, version_cap=self.version_cap))
|
||||
super(RPCVersionCapError, self).__init__(msg)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user