Merge "Catch concrete exceptions when validating project config on push"

This commit is contained in:
Edwin Kempin
2016-07-15 09:45:08 +00:00
committed by Gerrit Code Review

View File

@@ -346,10 +346,10 @@ public class CommitValidators {
}
throw new ConfigInvalidException("invalid project configuration");
}
} catch (Exception e) {
} catch (ConfigInvalidException | IOException e) {
log.error("User " + currentUser.getUserName()
+ " tried to push invalid project configuration "
+ receiveEvent.command.getNewId().name() + " for "
+ " tried to push an invalid project configuration "
+ receiveEvent.command.getNewId().name() + " for project "
+ receiveEvent.project.getName(), e);
throw new CommitValidationException("invalid project configuration",
messages);