From c4190e314264ac214ad2f9da5d15f4e829548c63 Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Mon, 12 Oct 2020 21:16:51 +0300 Subject: [PATCH] fix(dev-infra): fix error message in `invokeSetNpmDistCommand()` function (#39229) In #39135, the commit message string was accidentally changed from a template literal to a regular string literal. This prevented the `npmDistTag` variable from being correctly displayed in the error message. This commit fixes it by switching it back to a template literal. NOTE: This was pointed out in https://github.com/angular/angular/pull/39135#discussion_r503361412, but the PR was accidentally merged before the review feedback had been addressed. PR Close #39229 --- dev-infra/release/publish/external-commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev-infra/release/publish/external-commands.ts b/dev-infra/release/publish/external-commands.ts index 6a425af06a..8b27c14f31 100644 --- a/dev-infra/release/publish/external-commands.ts +++ b/dev-infra/release/publish/external-commands.ts @@ -44,7 +44,7 @@ export async function invokeSetNpmDistCommand(npmDistTag: string, version: semve info(green(` ✓ Set "${npmDistTag}" NPM dist tag for all packages to v${version}.`)); } catch (e) { error(e); - error(red(' ✘ An error occurred while setting the NPM dist tag for "${npmDistTag}".')); + error(red(` ✘ An error occurred while setting the NPM dist tag for "${npmDistTag}".`)); throw new FatalReleaseActionError(); } }