Skip to content

Commit 3b7bfe1

Browse files
committed
If an error is encountered, print the log message with @error (instead of println)
1 parent cf156dd commit 3b7bfe1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/slurmmanager.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ function launch(manager::SlurmManager, params::Dict, instances_arr::Array, c::Co
9393
sleep(manager.srun_post_exit_sleep)
9494
end
9595

96-
catch e
97-
println("Error launching Slurm job:")
98-
rethrow(e)
96+
catch ex
97+
@error "Error launching Slurm job" exception=ex
98+
rethrow(ex)
9999
end
100100
end
101101

0 commit comments

Comments
 (0)