diff --git a/snakemake_executor_plugin_slurm/__init__.py b/snakemake_executor_plugin_slurm/__init__.py index 3e6349b1..e70b5a16 100644 --- a/snakemake_executor_plugin_slurm/__init__.py +++ b/snakemake_executor_plugin_slurm/__init__.py @@ -231,9 +231,10 @@ def run_job(self, job: JobExecutorInterface): ) except subprocess.CalledProcessError as e: raise WorkflowError( - f"SLURM job submission failed. The error message was {e.output}" + f"SLURM sbatch failed. The error message was {e.output}" ) - if err: # any other error message? + # any other error message indicating failure? + if "submission failed" in err: raise WorkflowError( f"SLURM job submission failed. The error message was {err}" )