Skip to content

Commit

Permalink
Merge pull request mozilla-services#1066 from rfw/show_error_in_list_…
Browse files Browse the repository at this point in the history
…jobs

Show full traceback details with error in crontabber.
  • Loading branch information
peterbe committed Jan 30, 2013
2 parents 9ce7cea + 99e6b5d commit dda3e3d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion socorro/cron/crontabber.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,10 @@ def list_jobs(self, stream=None):
if info.get('last_error'):
print >>stream, 'Error!!'.ljust(PAD),
print >>stream, '(%s times)' % info['error_count']
print >>stream, info['last_error']['traceback']
print >>stream, 'Traceback (most recent call last):'
print >>stream, info['last_error']['traceback'],
print >>stream, info['last_error']['type'].__name__ + ':',
print >>stream, info['last_error']['value']
print >>stream, ''

def run_all(self):
Expand Down

0 comments on commit dda3e3d

Please sign in to comment.