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; }