Skip to content

Commit 7a43066

Browse files
committed
cleanup docstring/error messages
1 parent f368fdc commit 7a43066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/slurmmanager.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
ClusterManager for a Slurm allocation
33
4-
Represents the resources available within a slurm allocation created by salloc/sbatch.
4+
Represents the resources available within a slurm allocation created by salloc/sbatch.\\
55
The environment variables `SLURM_JOB_ID` or `SLURM_JOBID` and `SLURM_NTASKS` must be defined to construct this object.
66
"""
77
mutable struct SlurmManager <: ClusterManager
@@ -30,7 +30,7 @@ mutable struct SlurmManager <: ClusterManager
3030
if "SLURM_NTASKS" in keys(ENV)
3131
ENV["SLURM_NTASKS"]
3232
else
33-
throw("""
33+
error("""
3434
SlurmManager must be constructed inside a slurm environment with a specified number of tasks.
3535
SLURM_NTASKS must be defined.
3636
""")

0 commit comments

Comments
 (0)