From 298121e2ef35909f15dfc9cda748aba8e86af395 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 24 Oct 2010 10:16:42 -0400 Subject: [PATCH] Save CommandError in failed InvokeJobs. --- pysawsim/manager/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.26.2