From 2f95dfb67dd0c5ef62a0d953aa985f0dc512cbd8 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Fri, 13 Nov 2026 23:32:14 +1100 Subject: [PATCH] fix(ui): a failed step restart names the run and step it was for --- ui/src/copy/errors/workflows.ts | 2 +- ui/src/workflows/WorkflowEditor.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/copy/errors/workflows.ts b/ui/src/copy/errors/workflows.ts index ce039295c..5b6362d33 100644 --- a/ui/src/copy/errors/workflows.ts +++ b/ui/src/copy/errors/workflows.ts @@ -35,7 +35,7 @@ export const workflows = { stagesNotLoaded: "Couldn't load the run's stages", }, editor: { - restartFailed: "Restart failed", + restartFailed: (run: string, step: string, detail: string) => `Couldn't restart run #${run} from ${step}: ${detail}`, draftNotSaved: "Draft not saved. Your edit is still in the editor.", stepIdTaken: (id: string) => `Another step is already called ${id}.`, stepTypesUnavailable: "Step types didn't load, so steps can't be opened or checked.", diff --git a/ui/src/workflows/WorkflowEditor.vue b/ui/src/workflows/WorkflowEditor.vue index 453583146..0a83468f8 100644 --- a/ui/src/workflows/WorkflowEditor.vue +++ b/ui/src/workflows/WorkflowEditor.vue @@ -112,7 +112,7 @@ async function restartFrom(from: string): Promise { await api.taskAction(watched.value, "retry", { resume_from: from }); await refresh(); } catch (err) { - restartError.value = describeError(err, errors.workflows.editor.restartFailed); + restartError.value = errors.workflows.editor.restartFailed(watched.value, from, describeError(err, errors.common.unknown)); } finally { restarting.value = false; }