-
Notifications
You must be signed in to change notification settings - Fork 521
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IOApp.reportFailure
is not invoked for a NonFatal exception
#3768
Comments
This is the correct and expected behavior. cats-effect/core/jvm/src/main/scala/cats/effect/IOApp.scala Lines 235 to 243 in 25c948b
For example: import scala.concurrent.duration._
override def run: IO[Unit] = IO(throw new Exception("")).start *> IO.sleep(1.second) In this case, the exception is raised on a An error raised in |
prints stack trace instead of "Failure".
The text was updated successfully, but these errors were encountered: