Browse Source

Wrapped error handle in UIO

master
Rohan Sircar 4 months ago
parent
commit
f95ecc2cb3
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/main/scala/nova/monadic_sfx/Main.scala

+ 1
- 1
src/main/scala/nova/monadic_sfx/Main.scala View File

@ -33,7 +33,7 @@ object Main extends MainModule with BIOApp {
override def run(args: List[String]): UIO[ExitCode] =
appResource(System.currentTimeMillis())
.use(_ => Task.unit)
.onErrorHandle(_.printStackTrace())
.onErrorHandleWith(ex => UIO(ex.printStackTrace()))
.as(ExitCode.Success)
}

Loading…
Cancel
Save