Skip to content

Commit

Permalink
If an error is encountered, print the log message with @error (inst…
Browse files Browse the repository at this point in the history
…ead of `println`)
  • Loading branch information
DilumAluthge committed Jan 1, 2025
1 parent cf156dd commit 3b7bfe1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/slurmmanager.jl
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ function launch(manager::SlurmManager, params::Dict, instances_arr::Array, c::Co
sleep(manager.srun_post_exit_sleep)
end

catch e
println("Error launching Slurm job:")
rethrow(e)
catch ex
@error "Error launching Slurm job" exception=ex
rethrow(ex)
end
end

Expand Down

0 comments on commit 3b7bfe1

Please sign in to comment.