[jhbuild] gui: fix error handling on signal received by build process
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] gui: fix error handling on signal received by build process
- Date: Tue, 14 Aug 2012 08:55:15 +0000 (UTC)
commit 5da80daf527271015ab81d1eabc3af753b9908cc
Author: FrÃdÃric PÃters <fpeters 0d be>
Date: Tue Aug 14 10:54:27 2012 +0200
gui: fix error handling on signal received by build process
jhbuild/frontends/gtkui.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/frontends/gtkui.py b/jhbuild/frontends/gtkui.py
index a8ea92f..732922c 100644
--- a/jhbuild/frontends/gtkui.py
+++ b/jhbuild/frontends/gtkui.py
@@ -589,7 +589,8 @@ class AppWindow(gtk.Window, buildscript.BuildScript):
rc = os.WEXITSTATUS(self.vte_child_exit_status)
elif os.WIFSIGNALED(self.vte_child_exit_status):
raise CommandError(_('%(command)s died with signal %(rc)s') % {
- 'command': short_command, 'rc': os.WTERMSIG(rc)})
+ 'command': short_command,
+ 'rc': os.WTERMSIG(self.vte_child_exit_status)})
if rc:
raise CommandError(_('%(command)s returned with an error code (%(rc)s)') % {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]