Print the CommandError of failed sawsim executions.
authorW. Trevor King <wking@drexel.edu>
Sun, 24 Oct 2010 14:19:30 +0000 (10:19 -0400)
committerW. Trevor King <wking@drexel.edu>
Sun, 24 Oct 2010 14:19:30 +0000 (10:19 -0400)
pysawsim/sawsim.py

index 0e73940adc6b39368e8061fa17ed601e5479f56b..a8c55fc846c1ea2b21daf1255cfd9e121fb79d82 100644 (file)
@@ -184,7 +184,7 @@ class SawsimRunner (object):
             [job.id for job in jobs.itervalues()])
         for i,job in jobs.iteritems():
             j = complete_jobs[job.id]
-            assert j.status == 0, j.data
+            assert j.status == 0, j.data['error']
             if self._use_cache == True:
                 self._cache_run(d, j.data['stdout'])
             yield self.parse(j.data['stdout'])