Skip to content

Commit

Permalink
Only handle RuntimeExceptions (#230)
Browse files Browse the repository at this point in the history
Print full stack trace on non runtime exception
  • Loading branch information
RustedBones authored Jan 14, 2025
1 parent e904bb3 commit e6974fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/src/main/scala/com/github/sbt/avro/SbtAvro.scala
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ object SbtAvro extends AutoPlugin {

(outDir ** SbtAvro.JavaFileFilter).get().toSet
} catch {
case e: Exception =>
case e: RuntimeException =>
out.log.err(e.getMessage)
throw new AvroGenerateFailedException
} finally {
Expand Down

0 comments on commit e6974fd

Please sign in to comment.