Skip to content

Commit

Permalink
replace IllegalStateException to logging
Browse files Browse the repository at this point in the history
  • Loading branch information
savkk committed Nov 26, 2023
1 parent 03051e4 commit 8e1f0aa
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions qase-api/src/main/java/io/qase/api/QaseClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,14 @@ private static ApiClient initApiClient() {
.description(getConfig().runDescription())
.isAutotest(true))
.getResult().getId();
getConfig().setProperty(RUN_ID_KEY, String.valueOf(id));
logger.info("Qase run id - {}", getConfig().runId());
} catch (QaseException e) {
throw new IllegalStateException(e);
isEnabled = false;
logger.error(e.getMessage());
}
getConfig().setProperty(RUN_ID_KEY, String.valueOf(id));
}
}
logger.info("Qase run id - {}", getConfig().runId());
return client;
}

Expand Down

0 comments on commit 8e1f0aa

Please sign in to comment.