Skip to content

Commit

Permalink
Merge pull request #504 from msto/ms_report-invalid-snakefile-error
Browse files Browse the repository at this point in the history
feat: Report the underlying error when a Snakefile cannot be serialized
  • Loading branch information
ayushkamat authored Nov 1, 2024
2 parents 637d358 + 5e542ce commit b6b4be7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion latch_cli/snakemake/serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def __exit__(self, typ, value, tb):
# todo(maximsmol): handle specific errors
# WorkflowError: Failed to open source file /Users/maximsmol/projects/latchbio/latch/test/CGI_WGS_GATK_Pipeline/Snakefiles/CGI_WGS_GATK_Pipeline/Snakefiles/calc_frag_len.smk
# FileNotFoundError: [Errno 2] No such file or directory: '/Users/maximsmol/projects/latchbio/latch/test/CGI_WGS_GATK_Pipeline/Snakefiles/CGI_WGS_GATK_Pipeline/Snakefiles/calc_frag_len.smk'
raise RuntimeError("invalid Snakefile") from value
raise RuntimeError(f"invalid Snakefile: {value}") from value


def snakemake_workflow_extractor(
Expand Down

0 comments on commit b6b4be7

Please sign in to comment.