Handle error when publishing non draft patch set

Trying to publish a non draft patch set with the 'review' SSH command
failed with an 'internal server error'. Now the error is handled and
a proper error message is printed out.

Change-Id: Iad0e923e7e4f30387eff165776231ff32289dd96
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
This commit is contained in:
Edwin Kempin
2012-02-07 13:38:06 +01:00
parent 388ba60191
commit 20b27e7c5a
3 changed files with 13 additions and 2 deletions

View File

@@ -294,6 +294,9 @@ public class ReviewCommand extends BaseCommand {
case RULE_ERROR:
errMsg += "rule error";
break;
case NOT_A_DRAFT:
errMsg += "change is not a draft";
break;
default:
errMsg += "failure in review";
}