Commits

Anonymous committed e59ddaf

Fixed a couple of places where an exception instance was passed to the _ mercurial.i18n function instead of a string

  • Participants
  • Parent commits dc86259

Comments (0)

Files changed (1)

File mercurial_reviewboard/__init__.py

         if opts['publish']:
             reviewboard.publish(request_id)
     except ReviewBoardError, msg:
-        raise util.Abort(_(msg))
+        raise util.Abort(_(str(msg)))
 
 
 def new_review(ui, fields, diff, parentdiff, opts):
         if opts['publish']:
             reviewboard.publish(request_id)
     except ReviewBoardError, msg:
-        raise util.Abort(_(msg))
+        raise util.Abort(_(str(msg)))
     
     return request_id
 
         server = ui.config('reviewboard', 'server')
     if not server:
         msg = 'please specify a reviewboard server in your .hgrc file or using the --server flag'
-        raise util.Abort(_(msg))
+        raise util.Abort(_(str(msg)))
     return server