Skip to content

Commit

Permalink
Mikado exits with errcode non-zero when prepare fails (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljyanesm committed Aug 13, 2020
1 parent 050a3e6 commit ca90031
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Mikado/preparation/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,9 @@ def prepare(args, logger):
logger.info("""Mikado prepare has finished correctly. The output %s FASTA file can now be used for BLASTX \
and/or ORF calling before the next step in the pipeline, `mikado serialise`.""",
args.json_conf["prepare"]["files"]["out_fasta"])
logging.shutdown()
else:
logger.error("Mikado prepared has encountered a fatal error. Please check the logs and, if there is a bug,"\
"report it to https://github.com/EI-CoreBioinformatics/mikado/issues")
logging.shutdown()
logging.shutdown()
exit(1)

0 comments on commit ca90031

Please sign in to comment.