From c493c33e3896784ee60c9d4ac79721ca6b96a778 Mon Sep 17 00:00:00 2001 From: "Carlo Miguel F. Cruz" Date: Mon, 4 Oct 2021 11:52:24 +0800 Subject: [PATCH] Error message when renaming a fleet now mentions the target name. Change-type: patch Signed-off-by: Carlo Miguel F. Cruz --- lib/commands/app/rename.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/commands/app/rename.ts b/lib/commands/app/rename.ts index 462f1b37..f0340117 100644 --- a/lib/commands/app/rename.ts +++ b/lib/commands/app/rename.ts @@ -120,7 +120,7 @@ export class FleetRenameCmd extends Command { } catch (e) { // BalenaRequestError: Request error: "organization" and "app_name" must be unique. if ((e.message || '').toLowerCase().includes('unique')) { - throw new ExpectedError(`Error: fleet ${params.fleet} already exists.`); + throw new ExpectedError(`Error: fleet ${newName} already exists.`); } throw e; }