Convert maintainServer to PermissionBackend
Change-Id: I0b8bbd2df1f72f8e76b19b8baae01713403e628a
This commit is contained in:

committed by
David Pursehouse

parent
53417fc605
commit
a3efaba361
@@ -572,7 +572,7 @@ class ChangeApiImpl implements ChangeApi {
|
||||
public ChangeInfo check(FixInput fix) throws RestApiException {
|
||||
try {
|
||||
return check.apply(change, fix).value();
|
||||
} catch (OrmException e) {
|
||||
} catch (OrmException | PermissionBackendException e) {
|
||||
throw new RestApiException("Cannot check change", e);
|
||||
}
|
||||
}
|
||||
@@ -581,7 +581,7 @@ class ChangeApiImpl implements ChangeApi {
|
||||
public void index() throws RestApiException {
|
||||
try {
|
||||
index.apply(change, new Index.Input());
|
||||
} catch (IOException | OrmException e) {
|
||||
} catch (IOException | OrmException | PermissionBackendException e) {
|
||||
throw new RestApiException("Cannot index change", e);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user