Skip to content
Snippets Groups Projects
Commit 12fbb5bc authored by Adam Caprez's avatar Adam Caprez
Browse files

Add non-zero exit code.

parent 4e3a45df
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,7 @@ import chipathlon.db
import argparse
import yaml
import os
import sys
parser = argparse.ArgumentParser(description="Insert a bed file into the database.")
parser.add_argument("-u", "--username", dest="username", help="Database username (if required).")
......@@ -30,4 +31,5 @@ if os.path.isfile(args.file) and os.path.isfile(args.meta) and os.path.getsize(a
print msg
else:
print "Either input file %s or meta file %s does not exist." % (args.file, args.meta)
print "Either input file '%s' or meta file '%s' does not exist, or has zero size." % (args.file, args.meta)
sys.exit(1)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment