From: Guido Günther Date: Thu, 8 Nov 2012 21:20:26 +0000 (+0100) Subject: GbpError accepts an error message X-Git-Tag: debian/0.6.0_git20121124~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09ba538cee7dea1fa216f322982283fbc0a2db8e;p=tools%2Fgit-buildpackage.git GbpError accepts an error message so no need to print it separately --- 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)