2942
2942
class HookFailed(BzrError):
2943
2943
"""Raised when a pre_change_branch_tip hook function fails anything other
2947
2950
_fmt = ("Hook '%(hook_name)s' during %(hook_stage)s failed:\n"
2948
2951
"%(traceback_text)s%(exc_value)s")
2950
2953
def __init__(self, hook_stage, hook_name, exc_info):
2952
2957
self.hook_stage = hook_stage
2953
2958
self.hook_name = hook_name