From e946e6a651b39d49a884acd9f6468bb18e985bf2 Mon Sep 17 00:00:00 2001 From: ST-DDT Date: Sat, 14 Oct 2023 11:07:03 +0200 Subject: infra(unicorn): catch-error-name (#2471) --- scripts/generateLocales.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'scripts') diff --git a/scripts/generateLocales.ts b/scripts/generateLocales.ts index 70e40157..86704a7c 100644 --- a/scripts/generateLocales.ts +++ b/scripts/generateLocales.ts @@ -296,11 +296,11 @@ async function main(): Promise { } localeTitle = title; - } catch (e) { + } catch (error) { console.error( `Failed to load ${pathMetadata}. Please make sure the file exists and exports a MetadataDefinition.` ); - console.error(e); + console.error(error); } const localizedFaker = `faker${locale.replace(/^([a-z]+)/, (part) => @@ -367,8 +367,8 @@ async function main(): Promise { writeFileSync(pathDocsGuideLocalization, localizationContent); } -main().catch((e) => { +main().catch((error) => { // Workaround until top level await is available - console.error(e); + console.error(error); process.exit(1); }); -- cgit v1.2.3