Commits

mdelagra committed 9696a52

removed misleading error message

  • Participants
  • Parent commits be89025

Comments (0)

Files changed (1)

mercurial_reviewboard/__init__.py

         if opts['publish']:
             reviewboard.publish(request_id)
     except ReviewBoardError, msg:
-        raise post_error(msg, parentdiff)
+        raise util.Abort(_(msg))
 
 
 def new_review(ui, fields, diff, parentdiff, opts):
         if opts['publish']:
             reviewboard.publish(request_id)
     except ReviewBoardError, msg:
-        raise post_error(msg, parentdiff)
+        raise util.Abort(_(msg))
     
     return request_id
 
 
-def post_error(error, parentdiff):
-    msg = error.__str__()
-    if not parentdiff:
-        msg += '\n  You may need to generate a parent diff with the -o or -O <repo> option.'
-    return util.Abort(_(msg))
-
-
 def find_reviewboard_repo_id(ui, reviewboard, opts):
     if opts.get('repoid'):
         return opts.get('repoid')