mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-15 03:18:07 +00:00
explain the source of task failures related notifications (#635)
This commit is contained in:
@ -29,7 +29,10 @@ def fail_task(report: Report, error: Exception) -> None:
|
||||
task = Task.get(report.job_id, report.task_id)
|
||||
if task:
|
||||
task.mark_failed(
|
||||
Error(code=ErrorCode.NOTIFICATION_FAILURE, errors=[str(error)])
|
||||
Error(
|
||||
code=ErrorCode.NOTIFICATION_FAILURE,
|
||||
errors=["notification failed", str(error)],
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user