Skip to content

Commit f2a2937

Browse files
committed
Catch any exception if received when getting the report link for browserstack
1 parent 84fbaaa commit f2a2937

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/cucumber/listener/CucumberScenarioListener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ private static String getReportLinkFromBrowserStack(String sessionId) {
272272
JSONObject automation_session = pr.getJSONObject("automation_session");
273273
reportLink = automation_session.getString("browser_url");
274274
LOGGER.debug("reportLink: " + reportLink);
275-
} catch (IOException e) {
275+
} catch (Exception e) {
276276
LOGGER.debug("Unable to get report link from BrowserStack: " + e.getMessage());
277277
e.printStackTrace();
278278
}

0 commit comments

Comments
 (0)