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) {
4343 return webPage .getMetadata ().getName ();
4444 }
4545
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+ }
5050
5151 public static void simulateErrorIfRequested (WebPage webPage ) throws ErrorSimulationException {
5252 if (webPage .getSpec ().getHtml ().contains ("error" )) {
You can’t perform that action at this time.
0 commit comments