Skip to content

Commit

Permalink
handle fiber failures (zio#6600)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgfraser authored Apr 12, 2022
1 parent fca3c7a commit cb9a106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/jvm/src/main/scala/zio/App.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ trait App extends BootstrapRuntime {
val _ = unsafeRunSync(fiber.interrupt)
}
}))
result <- fiber.join
result <- fiber.join.catchAllCause(_ => ZIO.succeed(ExitCode.failure))
_ <- fiber.interrupt
} yield result.code
)
Expand Down

0 comments on commit cb9a106

Please sign in to comment.