Commit 12fbb5bc authored by Adam Caprez's avatar Adam Caprez
Browse files

Add non-zero exit code.

parent 4e3a45df
......@@ -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
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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment