From 532adc73897af29f79814daf31fc9b20c467a135 Mon Sep 17 00:00:00 2001 From: "shuwen.wu" Date: Wed, 2 Sep 2026 18:44:08 +0800 Subject: [PATCH] fix: add debug logging to empty catch block Replace empty catch block with debug logging to help diagnose issues when manifest files cannot be read, while still handling the expected case of non-existent manifest files gracefully. --- packages/cli-link-assets/src/linkAssets.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/cli-link-assets/src/linkAssets.ts b/packages/cli-link-assets/src/linkAssets.ts index d2e10709a..c8b70bb8c 100644 --- a/packages/cli-link-assets/src/linkAssets.ts +++ b/packages/cli-link-assets/src/linkAssets.ts @@ -197,7 +197,10 @@ async function linkAssets(_argv: string[], ctx: CLIConfig): Promise { try { previouslyAndroidLinkedAssets = androidLinkPlatformOptions.manifest.read(); previouslyIOSLinkedAssets = iosLinkPlatformOptions.manifest.read(); - } catch (e) {} + } catch (e) { + // Manifest files may not exist yet, which is fine + logger.debug(`Failed to read existing manifest files: ${e}`); + } if ( androidAssetsPath.length === 0 &&