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) {