aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/generateLocales.ts8
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);
});