Skip to content

Commit db1fc64

Browse files
committed
Add extra log to capture exception trace on a path where it was lost
1 parent 0bf3c17 commit db1fc64

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main/java/org/infernus/idea/checkstyle/checker/CheckerFactory.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ private CachedChecker blockAndShowMessage(final ConfigurationLocation location,
199199
final Object... messageArgs) {
200200
return blockAnd(location, () -> {
201201
if (module != null) {
202+
LOG.warn("Blocking configuration due to exception", cause);
202203
Notifications.showError(module.getProject(), message(messageKey, messageArgs));
203204
} else {
204205
throw new CheckStylePluginException(message(messageKey, messageArgs), cause);

src/main/java/org/infernus/idea/checkstyle/checker/ScanFiles.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ private List<ScanResult> checkFiles(final Module module,
194194
var problems = checker.get().scan(scannableFiles, configurationManager().getCurrent().isSuppressErrors());
195195
scanResults.add(new ScanResult(ConfigurationLocationResult.of(configurationLocation, PRESENT), module, problems));
196196
} else {
197-
throw new CheckStylePluginException("Could not create checker for location " + configurationLocation);
197+
throw new CheckStylePluginException("Could not create checker for location " + configurationLocation + ", see logs for details.");
198198
}
199199
}
200200
return scanResults;

0 commit comments

Comments
 (0)