Skip to content

Commit

Permalink
Merge pull request #323 from uhafner/error-messages
Browse files Browse the repository at this point in the history
Add a newline before the markdown section
  • Loading branch information
uhafner committed Mar 8, 2024
2 parents 9d2970c + a5cde10 commit d259ffd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/edu/hm/hafner/grading/GradingReport.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,11 @@ public String getMarkdownErrors(final AggregatedScore score, final Throwable exc
}

private String createExceptionSection(final Throwable exception) {
return String.format("## Exception%n```%n%s%n```%n", ExceptionUtils.getStackTrace(exception));
return String.format("%n## Exception%n```%n%s%n```%n", ExceptionUtils.getStackTrace(exception));
}

private String createLogSection(final AggregatedScore score) {
return String.format("## Error Messages%n```%n%s%n```%n## Information Messages%n```%n%s%n```%n",
return String.format("%n## Error Messages%n```%n%s%n```%n## Information Messages%n```%n%s%n```%n",

Check warning on line 176 in src/main/java/edu/hm/hafner/grading/GradingReport.java

View workflow job for this annotation

GitHub Actions / Quality Monitor

Mutation survived

One mutation survived in line 176 (EmptyObjectReturnValsMutator)
Raw output
Survived mutations:
- replaced return value with "" for edu/hm/hafner/grading/GradingReport::createLogSection (org.pitest.mutationtest.engine.gregor.mutators.returns.EmptyObjectReturnValsMutator)
joinMessages(score.getErrorMessages()),
joinMessages(score.getInfoMessages()));
}
Expand Down

0 comments on commit d259ffd

Please sign in to comment.