Skip to content

Commit

Permalink
CHE-897: Do not log error when sending a pull request to own project
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Vinokur committed Apr 5, 2016
1 parent 5f0cbe7 commit f5b86e3
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,9 @@ public GitHubPullRequest createPullRequest(@PathParam("user") String user, @Path
input.getTitle(), input.getHead(), input.getBase(), input.getBody());
return gitHubDTOFactory.createPullRequest(pullRequest);
} catch (Exception e) {
LOG.error("Creating pull request fail", e);
if (!e.getMessage().contains("No commits between master and master")) {
LOG.error("Creating pull request fail", e);
}
throw new ServerException(e.getMessage());
}
}
Expand Down

0 comments on commit f5b86e3

Please sign in to comment.