ReceiveCommits: Fix error message if auto-closing changes fails

Auto-closing changes can fail for different reasons, failing to scan
changes to auto-close is only one of the possible reasons. Make the
error message more generic so that it doesn't imply a wrong cause.

Change-Id: I85e70e8ba5906f3a17453cc73273865b0100ac28
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2018-01-04 13:15:34 +01:00
parent 64ae623394
commit 1c8c3224ab

View File

@@ -2918,7 +2918,7 @@ class ReceiveCommits {
} catch (RestApiException e) {
logError("Can't insert patchset", e);
} catch (IOException | OrmException | UpdateException | PermissionBackendException e) {
logError("Can't scan for changes to close", e);
logError("Failed to auto-close changes", e);
}
}