Skip to content

Commit

Permalink
Add failure message
Browse files Browse the repository at this point in the history
  • Loading branch information
John Smith committed May 8, 2024
1 parent 66186ac commit 98d8348
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion admin/app/clusters/[clusterId]/tasks/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,12 @@ export default function Page({ params }: { params: { clusterId: string } }) {
jobs: data.jobs,
});
} else {
toast.error("Failed to issue cluster task");
setData({
loading: false,
taskId: null,
result: "Failed to execute task",
jobs: data.jobs,
});
}
}}
>
Expand Down

0 comments on commit 98d8348

Please sign in to comment.