File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed
src/main/java/com/coreyd97/stepper Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -86,6 +86,9 @@ public void executeBlocking(){
86
86
} catch (SequenceExecutionException e ) {
87
87
JOptionPane .showMessageDialog (Stepper .getUI ().getUiComponent (), e .getMessage (),
88
88
"Sequence Stopped" , JOptionPane .ERROR_MESSAGE );
89
+ }catch (Exception e ){
90
+ JOptionPane .showMessageDialog (Stepper .getUI ().getUiComponent (), e .getMessage (),
91
+ "Sequence Failed" , JOptionPane .ERROR_MESSAGE );
89
92
}
90
93
for (SequenceExecutionListener stepLExecutionistener : sequenceExecutionListeners ) {
91
94
stepLExecutionistener .afterSequenceEnd (sequenceSuccess );
Original file line number Diff line number Diff line change @@ -150,7 +150,13 @@ public StepExecutionInfo executeStep(List<StepVariable> replacements) throws Seq
150
150
151
151
long start = new Date ().getTime ();
152
152
//Update with response
153
- IHttpRequestResponse requestResponse = Stepper .callbacks .makeHttpRequest (this .getHttpService (), builtRequest );
153
+ IHttpRequestResponse requestResponse = null ;
154
+ try {
155
+ requestResponse = Stepper .callbacks .makeHttpRequest (this .getHttpService (), builtRequest );
156
+ }catch (RuntimeException e ){
157
+ if (e .getMessage ().isEmpty () || e .getMessage ().equalsIgnoreCase (this .hostname ))
158
+ throw new RuntimeException (String .format ("Failed to execute step \" %s\" " , this .title ));
159
+ }
154
160
long end = new Date ().getTime ();
155
161
if (requestResponse .getResponse () == null )
156
162
throw new SequenceExecutionException ("The request to the server timed out." );
You can’t perform that action at this time.
0 commit comments