Skip to content

Commit

Permalink
Fix typescript error when accessing error in `scripts/updateTsRefer…
Browse files Browse the repository at this point in the history
…ences.ts` (#1895)
  • Loading branch information
darthmaim authored Dec 19, 2024
1 parent e988ad3 commit d006445
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/updateTsReferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ async function updateTsReferences() {

fs.writeFileSync(`${packagePath}/tsconfig.json`, JSON.stringify(tsConfig, null, 2));
} catch (error) {
console.error(chalk.red(error.message));
throw new Error(error.message);
console.error(chalk.red(String(error)));
throw error;
}
});

return Promise.resolve();
}

updateTsReferences().catch((error) => {
console.error(chalk.red(error.message));
console.error(chalk.red(String(error)));
process.exitCode = 1;
});

0 comments on commit d006445

Please sign in to comment.