File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
bundle-zio-http4s-blaze/src/main/scala/com/avast/sst/bundle Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ trait ZioResourceApp[A] extends CatsApp {
15
15
16
16
def program : Resource [Task , A ]
17
17
18
- override def run (args : List [String ]): ZIO [ZEnv , Nothing , Int ] = {
18
+ override def run (args : List [String ]): ZIO [ZEnv , Nothing , ExitCode ] = {
19
19
program
20
20
.use(_ => Task .unit)
21
21
.fold(
22
22
ex => {
23
23
logger.error(" Application initialization failed!" , ex)
24
- 1
24
+ ExitCode .failure
25
25
},
26
- _ => 0
26
+ _ => ExitCode .success
27
27
)
28
28
}
29
29
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ trait ZioServerApp extends CatsApp {
19
19
def program : Resource [Task , Server [Task ]]
20
20
21
21
@ silent(" dead code" )
22
- override def run (args : List [String ]): ZIO [ZEnv , Nothing , Int ] = {
22
+ override def run (args : List [String ]): ZIO [ZEnv , Nothing , ExitCode ] = {
23
23
program
24
24
.use { server =>
25
25
for {
@@ -30,9 +30,9 @@ trait ZioServerApp extends CatsApp {
30
30
.fold(
31
31
ex => {
32
32
logger.error(" Server initialization failed!" , ex)
33
- 1
33
+ ExitCode .failure
34
34
},
35
- _ => 0
35
+ _ => ExitCode .success
36
36
)
37
37
}
38
38
You can’t perform that action at this time.
0 commit comments