Skip to content

Commit

Permalink
BACKLOG-22634: Update messages (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
rknj authored and jayblanc committed Jun 11, 2024
1 parent 6766562 commit 170d0ea
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ public ProbeStatus getStatus(HttpServletRequest request, HttpServletResponse res
response.setCharacterEncoding(SettingsBean.getInstance().getCharacterEncoding());
renderingResult = renderService.render(r, renderContext);
if (!renderingResult.contains(textTest)) {
return new ProbeStatus(MessageFormat.format("Error rendering test, result should have contained {0} but was {1}",textTest, renderingResult), ProbeStatus.Health.RED );
return new ProbeStatus(MessageFormat.format("Rendering Chain test result should have contained '{0}' but was '{1}'", textTest, renderingResult), ProbeStatus.Health.RED);
}
} catch (Exception e) {
return new ProbeStatus(MessageFormat.format("Error rendering test: {0}",e.getMessage()), ProbeStatus.Health.RED);
return new ProbeStatus(MessageFormat.format("Rendering Chain test returns an error: '{0}'", e.getMessage()), ProbeStatus.Health.RED);
}
logger.debug("Rendering result: {}", renderingResult);

return new ProbeStatus(MessageFormat.format("All good: {0}", renderingResult), ProbeStatus.Health.GREEN);
return new ProbeStatus(MessageFormat.format("Rendering Chain works properly: '{0}'", renderingResult), ProbeStatus.Health.GREEN);
}

@Override
Expand Down

0 comments on commit 170d0ea

Please sign in to comment.