Skip to content

Commit

Permalink
restore deleted lines
Browse files Browse the repository at this point in the history
Co-authored-by: Phil Ewels <phil.ewels@scilifelab.se>
  • Loading branch information
mirpedrol and ewels authored Apr 14, 2022
1 parent 66d1e98 commit 7772e5a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nf_core/modules/test_yml_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,13 @@ def run_tests_workflow(self, command):
"It looks like Nextflow is not installed. It is required for most nf-core functions."
)
except subprocess.CalledProcessError as e:
raise UserWarning(f"Error running test workflow (exit code {e.returncode})\n[red]{e.output.decode()}")
output = rich.markup.escape(e.output.decode())
raise UserWarning(f"Error running test workflow (exit code {e.returncode})\n[red]{output}")
except Exception as e:
raise UserWarning(f"Error running test workflow: {e}")
else:
log.info("Test workflow finished!")
log.debug(nfconfig_raw)
log.debug(rich.markup.escape(nfconfig_raw))

return tmp_dir, tmp_dir_repeat

Expand Down

0 comments on commit 7772e5a

Please sign in to comment.