Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/error.py @ 46664:3941fe53670d
error: add `hint` attribute to `SidedataHashError`
This prevents an exception within an exception because `hint` does not exist.
Differential Revision: https://phab.mercurial-scm.org/D10024
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Thu, 18 Feb 2021 15:07:45 +0100 |
parents | 89a2afe31e82 |
children | 6fc57680cfd6 |
comparison
equal
deleted
inserted
replaced
46663:357d2ea95ce9 | 46664:3941fe53670d |
---|---|
53 pass | 53 pass |
54 | 54 |
55 | 55 |
56 class SidedataHashError(RevlogError): | 56 class SidedataHashError(RevlogError): |
57 def __init__(self, key, expected, got): | 57 def __init__(self, key, expected, got): |
58 self.hint = None | |
58 self.sidedatakey = key | 59 self.sidedatakey = key |
59 self.expecteddigest = expected | 60 self.expecteddigest = expected |
60 self.actualdigest = got | 61 self.actualdigest = got |
61 | 62 |
62 | 63 |