Perhaps the below might help you, but as mentioned in the answers, there can be multiple reasons why a step might fail? I just read the Console log myself.
Let us assume that the Test Object Page_CURA Healthcare Service/a_Make Disappointment contains a mistake, therefore the call to WebUI.verifyElementPresent() will fail after 10 seconds.
When the call failed after 10 seconds, a StepExecutionException will be thrown. So the try { ... } catch (StepFailedException ex) { .... } will intercept the Exception and perform a post processing which will retrieve JavaScript console log from Chrome browser.
Just checking in to see if you were able to find the answer you need within this thread or not? If yes, it would be great if you could mark said reply as a solution to show your appreciation to the person who post said reply. Thanks