From: W. Trevor King Date: Sun, 24 Oct 2010 14:16:42 +0000 (-0400) Subject: Save CommandError in failed InvokeJobs. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=298121e2ef35909f15dfc9cda748aba8e86af395;p=sawsim.git Save CommandError in failed InvokeJobs. --- diff --git a/pysawsim/manager/__init__.py b/pysawsim/manager/__init__.py index 4d50a03..acf2af6 100644 --- a/pysawsim/manager/__init__.py +++ b/pysawsim/manager/__init__.py @@ -158,7 +158,7 @@ class InvokeJob (Job): self.data = {'stdout':stdout, 'stderr':stderr} except invoke.CommandError, e: self.status = e - self.data = {'stdout':e.stdout, 'stderr':e.stderr} + self.data = {'stdout':e.stdout, 'stderr':e.stderr, 'error':e} class JobManager (object):