mercurial/localrepo.py
changeset 3069 bc3fe3b5b785
parent 3032 4d0e0f149581
child 3076 4c9fcb5e3b82
equal deleted inserted replaced
3068:547d1a4aa105 3069:bc3fe3b5b785
   131             except (KeyboardInterrupt, util.SignalInterrupt):
   131             except (KeyboardInterrupt, util.SignalInterrupt):
   132                 raise
   132                 raise
   133             except Exception, exc:
   133             except Exception, exc:
   134                 if isinstance(exc, util.Abort):
   134                 if isinstance(exc, util.Abort):
   135                     self.ui.warn(_('error: %s hook failed: %s\n') %
   135                     self.ui.warn(_('error: %s hook failed: %s\n') %
   136                                  (hname, exc.args[0] % exc.args[1:]))
   136                                  (hname, exc.args[0]))
   137                 else:
   137                 else:
   138                     self.ui.warn(_('error: %s hook raised an exception: '
   138                     self.ui.warn(_('error: %s hook raised an exception: '
   139                                    '%s\n') % (hname, exc))
   139                                    '%s\n') % (hname, exc))
   140                 if throw:
   140                 if throw:
   141                     raise
   141                     raise