diff options
author | Guido Günther <agx@sigxcpu.org> | 2017-11-27 19:59:32 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2017-11-27 19:59:32 +0100 |
commit | 7c05c02f2d0380ea2304a81f3c9f133161204c44 (patch) | |
tree | 36edf69c764d26a2fd76bd05e0889f998624a17e /gbp/deb | |
parent | 3add0410d6a1186d2e67b3d0209b6d9f3628cd43 (diff) |
ChangeLog: capture debchange errors instead of spewing on stderr
Diffstat (limited to 'gbp/deb')
-rw-r--r-- | gbp/deb/changelog.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/deb/changelog.py b/gbp/deb/changelog.py index 2b522016..1d7bc47e 100644 --- a/gbp/deb/changelog.py +++ b/gbp/deb/changelog.py @@ -277,7 +277,8 @@ class ChangeLog(object): args.append('[[[insert-git-dch-commit-message-here]]]') else: args.append('') - dch = Command('debchange', args, extra_env=env) + dch = Command('debchange', args, extra_env=env, capture_stderr=True) + dch.run_error = Command._f("Dch failed: {stderr_or_reason}") dch([], quiet=True) if msg: old_cl = open("debian/changelog", "r", encoding='utf-8') |