Rebase: Don't swallow caught exception
Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: Ie485ec39ae7acc2863823fefa39494475c302079
This commit is contained in:
committed by
David Pursehouse
parent
aefd1d5c27
commit
e4d1b55a1a
@@ -21,4 +21,8 @@ public class UnprocessableEntityException extends RestApiException {
|
||||
public UnprocessableEntityException(String msg) {
|
||||
super(msg);
|
||||
}
|
||||
|
||||
public UnprocessableEntityException(String msg, Throwable cause) {
|
||||
super(msg, cause);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -156,7 +156,7 @@ public class Rebase extends RetryingRestModifyView<RevisionResource, RebaseInput
|
||||
}
|
||||
} catch (NoSuchChangeException e) {
|
||||
throw new UnprocessableEntityException(
|
||||
String.format("Base change not found: %s", input.base));
|
||||
String.format("Base change not found: %s", input.base), e);
|
||||
}
|
||||
|
||||
PatchSet.Id baseId = base.patchSet().getId();
|
||||
|
||||
Reference in New Issue
Block a user