Skip to content

Commit

Permalink
Always log stack traces for now - investigating ...
Browse files Browse the repository at this point in the history
  • Loading branch information
snazy committed Mar 28, 2023
1 parent 0fa84cb commit 3d6b3c7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ public void execute() {

LOGGER.info("Quarkus application build was successful");
} catch (BootstrapException e) {
throw new GradleException("Failed to build Quarkus application", e);
// TODO remove this unconditional logging
LOGGER.error("Failed to generate sources in the QuarkusPrepare task for {}", gav, e);
// Gradle "abbreviates" the stacktrace to something human-readable, but here the underlying cause might
// get lost in the error output.
throw new GradleException("Failed to build Quarkus application for " + gav + " due to " + e, e);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ public void execute() {
// boolean test
params.getTest().get());
} catch (BootstrapException | IllegalAccessException | InvocationTargetException | ClassNotFoundException e) {
throw new GradleException("Failed to generate sources in the QuarkusPrepare task", e);
// TODO remove this unconditional logging
//if (!(e instanceof BootstrapException)) {
LOGGER.error("Failed to generate sources in the QuarkusPrepare task for {}", gav, e);
//}

// Gradle "abbreviates" the stacktrace to something human-readable, but here the underlying cause might
// get lost in the error output.
throw new GradleException("Failed to generate sources in the QuarkusPrepare task for " + gav + " due to " + e, e);
}
}
}

0 comments on commit 3d6b3c7

Please sign in to comment.