Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jankeromnes committed Feb 18, 2022
1 parent bab69f7 commit 1ec4d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/server/src/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ process.on("SIGUSR1", () => {
if (!err) {
const filename = path.join(os.tmpdir(), Date.now() + '.cpuprofile');
console.log('preparing cpuprofile: ' + filename);
fs.promises.writeFile(filename, JSON.stringify(profile));
fs.promises.writeFile(filename, JSON.stringify(profile)).catch(error => console.error('failed to cpuprofile: ', error));
} else {
console.error('failed to cpuprofile: ', err);
}
Expand Down

0 comments on commit 1ec4d35

Please sign in to comment.