Catch multiple exceptions in REST views
Change-Id: I62eb25317656758b4b21ca68261edb70392c9458
This commit is contained in:
@@ -162,9 +162,7 @@ class Files implements ChildCollection<RevisionResource, FileResource> {
|
||||
if (!o.isEmpty()) {
|
||||
try {
|
||||
r = copy(Sets.newHashSet(o), old, resource, userId);
|
||||
} catch (IOException e) {
|
||||
log.warn("Cannot copy patch review flags", e);
|
||||
} catch (PatchListNotAvailableException e) {
|
||||
} catch (IOException | PatchListNotAvailableException e) {
|
||||
log.warn("Cannot copy patch review flags", e);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user