Adjust pre-upload to give cleaner errors.

_report_error will now throw a specific exception. Error handlers
will check for that exception and give friendler errors than a
stack trace.

BUG=None
TEST=Used it.

Change-Id: If686d3a48ca6605e7ae501a9ed81df387650b6ae
Reviewed-on: http://gerrit.chromium.org/gerrit/379
Reviewed-by: Ryan Cui <rcui@chromium.org>
Tested-by: Don Garrett <dgarrett@chromium.org>
1 file changed
tree: 5af1a395c3d1bc25890c24ea9ba7ea6da62ac817
  1. checkpatch.pl
  2. pre-upload.py