diff options
author | Guido Günther <agx@sigxcpu.org> | 2011-07-27 22:45:34 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2011-07-27 22:45:34 +0200 |
commit | 3c72dfafd4ff697b7e22d296c381086dfabb1d51 (patch) | |
tree | be23063e7c1d823a0c4fb17dec0c3e1101fc1f55 /git-import-orig | |
parent | 293086c51014c40212b045f671ae1e85502e007c (diff) |
git-import-orig: Clarify missing argument error message
Diffstat (limited to 'git-import-orig')
-rwxr-xr-x | git-import-orig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/git-import-orig b/git-import-orig index b1096594..a64cd075 100755 --- a/git-import-orig +++ b/git-import-orig @@ -215,9 +215,10 @@ def find_source(options, args): else: gbp.log.info("package is up to date, nothing to do.") return None - if len(args) != 1: # source specified - gbp.log.err("More than one archive specified. Try --help.") - raise GbpError + if len(args) > 1: # source specified + raise GbpError, "More than one archive specified. Try --help." + elif len(args) == 0: + raise GbpError, "No archive to import specified. Try --help." else: archive = OrigUpstreamSource(args[0]) return archive |