Skip to content

Commit

Permalink
fix: prevent ENOENT error on temp config removal (#5198)
Browse files Browse the repository at this point in the history
  • Loading branch information
jzempel authored and lukastaegert committed Nov 3, 2023
1 parent ba2a961 commit 75c67e9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/run/loadConfigFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,7 @@ async function loadConfigFromWrittenFile(
try {
return (await import(pathToFileURL(bundledFileName).href)).default;
} finally {
// Not awaiting here saves some ms while potentially hiding a non-critical error
unlink(bundledFileName);
unlink(bundledFileName).catch(error => console.warn(error?.message || error));
}
}

Expand Down

0 comments on commit 75c67e9

Please sign in to comment.