Skip to content

Commit 3f7dd5e

Browse files
authored
Merge pull request #24 from DilumAluthge-forks/dpa/rethrow-error
If an error is encountered, print the log message with `@error` (instead of `println`)
2 parents 2b7be50 + 3b7bfe1 commit 3f7dd5e

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
@@ -151,9 +151,9 @@ function launch(manager::SlurmManager, params::Dict, instances_arr::Array, c::Co
151151
sleep(manager.srun_post_exit_sleep)
152152
end
153153

154-
catch e
155-
println("Error launching Slurm job:")
156-
rethrow(e)
154+
catch ex
155+
@error "Error launching Slurm job" exception=ex
156+
rethrow(ex)
157157
end
158158
end
159159

0 commit comments

Comments
 (0)