Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ public static String serviceName(WebPage webPage) {
return webPage.getMetadata().getName();
}

public static ErrorStatusUpdateControl<WebPage> handleError(WebPage resource, Exception e) {
resource.getStatus().setErrorMessage("Error: " + e.getMessage());
return ErrorStatusUpdateControl.patchStatus(resource);
}
public static ErrorStatusUpdateControl<WebPage> handleError(WebPage resource, Exception e) {
Comment thread
csviri marked this conversation as resolved.
resource.getStatus().setErrorMessage("Error: " + e.getMessage());
return ErrorStatusUpdateControl.patchStatus(resource);
}

public static void simulateErrorIfRequested(WebPage webPage) throws ErrorSimulationException {
if (webPage.getSpec().getHtml().contains("error")) {
Expand Down