Fix error handling when posting a review request.

Review Request #4185 — Created May 28, 2013 and submitted

Information

RBTools
master

Reviewers

Fix error handling when posting a review request.

If an unhandled error code was returned from the server, the process
would just quit without any useful indication of what went wrong. We now
use the error message from the server.

On top of this, rbt-post and post-review were checking against the wrong
error code for the Empty Diff error.
Tested with an unhandled error code (by removing the default handling
temporarily).

Tested an empty diff.
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        rbtools/postreview.py
        rbtools/commands/post.py
      Ignored Files:
    
    
  2. 
      
SM
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to master, release-0.5.x (98096ee47132902461875535bfc03062e67ed1a3).
Loading...