Skip to content

Commit

Permalink
fix(cli): uncaught error in dangling promise
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackAsLight committed Feb 6, 2025
1 parent 8f4ff5e commit 59827a1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/unstable_progress_bar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,9 @@ export function createProgressBar(
}();
const startTime = performance.now();
const id = setInterval(print, 1_000);
writer.closed.finally(() => clearInterval(id));
writer.closed
.catch(() => {})
.finally(() => clearInterval(id));
let lastTime = startTime;
let lastValue = options.value!;

Expand Down

0 comments on commit 59827a1

Please # to comment.