Skip to content

Commit

Permalink
🔄 synced local 'skyvern-frontend/src/' with remote 'skyvern-frontend/…
Browse files Browse the repository at this point in the history
…src/'

<!-- ELLIPSIS_HIDDEN -->

> [!IMPORTANT]
> Improve error message display in `FlowRenderer.tsx` by using `detail` from error response if available.
>
>   - **Behavior**:
>     - In `FlowRenderer.tsx`, update `onError` in `saveWorkflowMutation` to display `detail` from error response if available, otherwise use `error.message`.
>   - **Misc**:
>     - No other files or functions are affected.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis" src="https://img.shields.io/badge/Ellipsis-blue?color=175173">](https://www.ellipsis.dev?ref=Skyvern-AI%2Fskyvern-cloud&utm_source=github&utm_medium=referral)<sup> for 89ad2066d47ab1255fbb073dae1871e9379a14a6. It will automatically update as commits are pushed.</sup>

<!-- ELLIPSIS_HIDDEN -->
  • Loading branch information
wintonzheng committed Oct 24, 2024
1 parent 805ff9f commit cecb89a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -219,9 +219,10 @@ function FlowRenderer({
setHasChanges(false);
},
onError: (error: AxiosError) => {
const detail = (error.response?.data as { detail?: string }).detail;
toast({
title: "Error",
description: error.message,
description: detail ? detail : error.message,
variant: "destructive",
});
},
Expand Down

0 comments on commit cecb89a

Please sign in to comment.