From 10f71d06c0c7df4e136fff0e278edce97c7ea4aa Mon Sep 17 00:00:00 2001 From: Matt Godbolt Date: Tue, 14 Jul 2026 16:53:47 +0100 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- lib/app/static-assets.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/app/static-assets.ts b/lib/app/static-assets.ts index 09b9030dd..1226ff7d7 100644 --- a/lib/app/static-assets.ts +++ b/lib/app/static-assets.ts @@ -135,8 +135,10 @@ export async function validateBrandingAssets(staticPath: string, extraBodyClass: for (const filename of required) { try { await fs.access(path.join(staticPath, filename)); - } catch { - missing.push(filename); + } catch (e: unknown) { + const err = e as NodeJS.ErrnoException; + if (err.code === 'ENOENT') missing.push(filename); + else throw err; } } if (missing.length > 0) {