Skip to content

Commit 14e35c7

Browse files
authored
Log MojoExecutionException when running CLI fails (#171)
1 parent 8d3220e commit 14e35c7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Unreleased
4+
5+
### Improvements
6+
7+
- Log `MojoExecutionException` when running CLI fails ([#171](https://github.com/getsentry/sentry-maven-plugin/pull/171))
8+
39
## 0.7.0
410

511
### Dependencies

src/main/java/io/sentry/cli/SentryCliRunner.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ public SentryCliRunner(
7979

8080
return collectAndMaybePrintOutput(logFile, debugSentryCli);
8181
} catch (MojoExecutionException e) {
82+
logger.error("Error while attempting to run Sentry CLI: ", e);
8283
if (logFile != null) {
8384
final @Nullable String output = collectAndMaybePrintOutput(logFile, true);
8485
if (output != null) {

0 commit comments

Comments
 (0)