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