Rebase: Don't swallow caught exception
Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: Ie485ec39ae7acc2863823fefa39494475c302079
This commit is contained in:
@@ -21,4 +21,8 @@ public class UnprocessableEntityException extends RestApiException {
|
|||||||
public UnprocessableEntityException(String msg) {
|
public UnprocessableEntityException(String msg) {
|
||||||
super(msg);
|
super(msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public UnprocessableEntityException(String msg, Throwable cause) {
|
||||||
|
super(msg, cause);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ public class Rebase extends RetryingRestModifyView<RevisionResource, RebaseInput
|
|||||||
}
|
}
|
||||||
} catch (NoSuchChangeException e) {
|
} catch (NoSuchChangeException e) {
|
||||||
throw new UnprocessableEntityException(
|
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().id();
|
PatchSet.Id baseId = base.patchSet().id();
|
||||||
|
|||||||
Reference in New Issue
Block a user