diff --git a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx index 42d1efb2..ceceaf72 100644 --- a/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx +++ b/skyvern-frontend/src/routes/workflows/WorkflowRun.tsx @@ -117,6 +117,26 @@ function WorkflowRun() { ); + const failureTips: { match: (reason: string) => boolean; tip: string }[] = [ + { + match: (reason) => reason.includes("Invalid master password"), + tip: "Tip: If inputting the master password via Docker Compose or in any container environment, make sure to double any dollar signs and do not surround it with quotes.", + }, + // Add more tips as needed + ]; + + const failureReason = workflowRun?.failure_reason; + + const matchedTips = failureReason + ? failureTips + .filter(({ match }) => match(failureReason)) + .map(({ tip }, index) => ( +
+ {tip} +
+ )) + : null; + const workflowFailureReason = workflowRun?.failure_reason ? (
Workflow Failure Reason
{workflowRun.failure_reason}
+ {matchedTips}
) : null;