##// END OF EJS Templates
bundle2: raise ProgrammingError for invalid call of addhookargs()...
Yuya Nishihara -
r33808:1bf5c550 default
parent child Browse files
Show More
@@ -318,9 +318,8 b' class bundleoperation(object):'
318 318
319 319 def addhookargs(self, hookargs):
320 320 if self.hookargs is None:
321 raise error.Abort(
322 _('attempted to add hooks to operation after transaction '
323 'started'))
321 raise error.ProgrammingError('attempted to add hookargs to '
322 'operation after transaction started')
324 323 self.hookargs.update(hookargs)
325 324
326 325 class TransactionUnavailable(RuntimeError):
General Comments 0
You need to be logged in to leave comments. Login now