mirror of
https://github.com/Skyvern-AI/skyvern.git
synced 2025-09-09 13:56:08 +00:00
Improve workflow failure reason (#1388)
This commit is contained in:
parent
1b7ff69f85
commit
e81fdf6512
1 changed files with 2 additions and 2 deletions
|
@ -172,9 +172,9 @@ class WorkflowService:
|
|||
workflow_run_id=workflow_run.workflow_run_id,
|
||||
)
|
||||
|
||||
failure_reason = "Setup up workflow failed due to an unexpected exception"
|
||||
failure_reason = f"Setup workflow failed due to an unexpected exception: {str(e)}"
|
||||
if isinstance(e, SkyvernException):
|
||||
failure_reason = f"Setup workflow failed due to an SkyvernException({e.__class__.__name__})"
|
||||
failure_reason = f"Setup workflow failed due to an SkyvernException({e.__class__.__name__}): {str(e)}"
|
||||
|
||||
await self.mark_workflow_run_as_failed(
|
||||
workflow_run_id=workflow_run.workflow_run_id, failure_reason=failure_reason
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue