build: fix the accept binary path in ts-api-guardian error message (#26602)

Fixes #26589

PR Close #26602
This commit is contained in:
Igor Minar 2018-10-22 13:52:28 -07:00 committed by Matias Niemelä
parent ea2a3ca705
commit bc9f534bf4

View File

@ -66,7 +66,7 @@ export function startCli() {
// Under bazel, give instructions how to use bazel run to accept the golden file.
if (!!process.env['BAZEL_TARGET']) {
console.error('\n\nAccept the new golden file:');
console.error(` bazel run ${process.env['BAZEL_TARGET']}.accept`);
console.error(` bazel run ${process.env['BAZEL_TARGET'].replace(/_bin$/, "")}.accept`);
}
process.exit(1);
}