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
This commit is contained in:
George Kalpakas 2020-10-12 21:16:51 +03:00 committed by atscott
parent c76dda6aeb
commit c9b36f9150
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}