summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-11-08 22:20:26 +0100
committerGuido Günther <agx@sigxcpu.org>2012-11-08 23:26:30 +0100
commit09ba538cee7dea1fa216f322982283fbc0a2db8e (patch)
tree5e60a44e36bbbd12e8f44cc7a830371dd87fdc6c
parentcf48b03984e0dffec3b72447436f15d043794873 (diff)
GbpError accepts an error message
so no need to print it separately
-rw-r--r--gbp/scripts/import_orig.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/gbp/scripts/import_orig.py b/gbp/scripts/import_orig.py
index 046f47d5..35e8f6fc 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)