File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
sample-operators/webpage/src/main/java/io/javaoperatorsdk/operator/sample Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ public static String serviceName(WebPage webPage) {
43
43
return webPage .getMetadata ().getName ();
44
44
}
45
45
46
- public static ErrorStatusUpdateControl <WebPage > handleError (WebPage resource , Exception e ) {
47
- resource .getStatus ().setErrorMessage ("Error: " + e .getMessage ());
48
- return ErrorStatusUpdateControl .patchStatus (resource );
49
- }
46
+ public static ErrorStatusUpdateControl <WebPage > handleError (WebPage resource , Exception e ) {
47
+ resource .getStatus ().setErrorMessage ("Error: " + e .getMessage ());
48
+ return ErrorStatusUpdateControl .patchStatus (resource );
49
+ }
50
50
51
51
public static void simulateErrorIfRequested (WebPage webPage ) throws ErrorSimulationException {
52
52
if (webPage .getSpec ().getHtml ().contains ("error" )) {
You can’t perform that action at this time.
0 commit comments