Skip to content

Commit

Permalink
improve error logging (fixes #710)
Browse files Browse the repository at this point in the history
  • Loading branch information
wakingrufus committed Sep 19, 2023
1 parent a6284c7 commit c1ad446
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ abstract class KtLintWorkAction : WorkAction<KtLintWorkAction.KtLintWorkParamete
results.add(result)
}
} catch (e: RuntimeException) {
logger.error(e.message)
throw GradleException(
"KtLint failed to parse file: ${it.absolutePath}",
e
Expand Down

0 comments on commit c1ad446

Please sign in to comment.