diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-11-08 22:20:26 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-11-08 23:26:30 +0100 |
commit | 09ba538cee7dea1fa216f322982283fbc0a2db8e (patch) | |
tree | 5e60a44e36bbbd12e8f44cc7a830371dd87fdc6c /gbp/scripts | |
parent | cf48b03984e0dffec3b72447436f15d043794873 (diff) |
GbpError accepts an error message
so no need to print it separately
Diffstat (limited to 'gbp/scripts')
-rw-r--r-- | gbp/scripts/import_orig.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gbp/scripts/import_orig.py b/gbp/scripts/import_orig.py index 046f47d..35e8f6f 100644 --- a/gbp/scripts/import_orig.py +++ b/gbp/scripts/import_orig.py @@ -265,8 +265,7 @@ def main(argv): is_empty = False if initial_branch else True if not repo.has_branch(options.upstream_branch) and not is_empty: - gbp.log.err(no_upstream_branch_msg % options.upstream_branch) - raise GbpError + raise GbpError(no_upstream_branch_msg % options.upstream_branch) (sourcepackage, version) = detect_name_and_version(repo, source, options) |