Lines Matching full:error
49 def usage(error=None):
64 if error:
65 print >>sys.stderr, "Error:", error
68 # Parse command line args, returns a Params instance or sys.exit(2) on error
69 # after printing the error and the usage.
72 error = None
79 error = str(e)
81 if error is None:
89 error = "Missing arguments: <source> <dest>"
95 error = "%s is not a directory" % p.SRC
97 error = "%s is not a directory" % p.DST
99 if error:
100 usage(error)