From 6f1ee40a4797411314a2bb227c04a73e9cae5f5a Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Thu, 13 Feb 2025 11:01:34 +0000 Subject: [PATCH] fix(ng-dev): handle error when running `bazel sync --only=repo` See comment --- ng-dev/release/publish/external-commands.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ng-dev/release/publish/external-commands.ts b/ng-dev/release/publish/external-commands.ts index 3cf159602..709ef5e56 100644 --- a/ng-dev/release/publish/external-commands.ts +++ b/ng-dev/release/publish/external-commands.ts @@ -270,9 +270,9 @@ export abstract class ExternalCommands { mode: 'silent', }); } catch (e) { - Log.error(e); - Log.error(' ✘ An error occurred while updating Aspect lock files.'); - throw new FatalReleaseActionError(); + // Note: Gracefully handling these errors because `sync` command + // exits with a non-zero exit code when pnpm-lock.yaml file is updated. + Log.debug(e); } spinner.success(green(' Updated Aspect `rules_js` lock files.')); }