diff options
| author | ST-DDT <[email protected]> | 2023-10-14 11:07:03 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-10-14 09:07:03 +0000 |
| commit | e946e6a651b39d49a884acd9f6468bb18e985bf2 (patch) | |
| tree | 058d76a86567dade923a22db2f7f57d957769dcb /scripts | |
| parent | e228183efc0fe74ee0438fbcb693932358921a20 (diff) | |
| download | faker-e946e6a651b39d49a884acd9f6468bb18e985bf2.tar.xz faker-e946e6a651b39d49a884acd9f6468bb18e985bf2.zip | |
infra(unicorn): catch-error-name (#2471)
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/generateLocales.ts | 8 |
1 files changed, 4 insertions, 4 deletions
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<void> { } 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<void> { 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); }); |
