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 86d3099141
commit 4f250726aa
1 changed files with 1 additions and 1 deletions

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