1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 18:21:12 +03:00

update task failure traceback text

This commit is contained in:
jangsutsr 2016-08-30 21:07:23 -04:00
parent 0007df0976
commit f5c095eb8a

View File

@ -656,7 +656,8 @@ class BaseTask(Task):
if status == 'canceled':
raise Exception("Task %s(pk:%s) was canceled (rc=%s)" % (str(self.model.__class__), str(pk), str(rc)))
else:
raise Exception("Task %s(pk:%s) encountered an error (rc=%s)" % (str(self.model.__class__), str(pk), str(rc)))
raise Exception("Task %s(pk:%s) encountered an error (rc=%s), please see task stdout for details." %
(str(self.model.__class__), str(pk), str(rc)))
if not hasattr(settings, 'CELERY_UNIT_TEST'):
self.signal_finished(pk)