Skip to content

Commit

Permalink
fix: 🐛 rimraf error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
JimmyBeldone committed Nov 17, 2023
1 parent bf86adc commit f25b91f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup/setup.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ const updatePackage = async () => {
cleanDeps().then(() => {
writeMessage(finalMessage);

// remove all setup scripts from the 'tools' folder
rimraf(setupPath).then((rmError) => {
if (rmError) throw new Error(rmError);
// remove all setup scripts from the 'setup' folder
rimraf(setupPath).catch((error) => {
throw new Error(error);
});
});
};
Expand Down

0 comments on commit f25b91f

Please sign in to comment.