Skip to content

Commit 23d0c9e

Browse files
authored
improve error logging (fixes JLLeitschuh#710) (JLLeitschuh#711)
1 parent 29fc25b commit 23d0c9e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
88
## [Unreleased]
99

1010
- update latest version text file manually [#709](https://github.com/JLLeitschuh/ktlint-gradle/pull/709)
11+
- Improve error logging [#711](https://github.com/JLLeitschuh/ktlint-gradle/pull/711)
1112

1213
## [11.6.0] - 2023-09-18
1314

plugin/src/main/kotlin/org/jlleitschuh/gradle/ktlint/worker/KtLintWorkAction.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ abstract class KtLintWorkAction : WorkAction<KtLintWorkAction.KtLintWorkParamete
123123
results.add(result)
124124
}
125125
} catch (e: RuntimeException) {
126+
logger.error(e.message)
126127
throw GradleException(
127128
"KtLint failed to parse file: ${it.absolutePath}",
128129
e

0 commit comments

Comments
 (0)