Skip to content

Commit

Permalink
fix: error in catch is unknown since TypeScript 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mekwall committed May 21, 2022
1 parent 30112c5 commit 096258f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FFmpeggy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ export class FFmpeggy extends (EventEmitter as new () => TypedEmitter<FFmpegEven
}

this.running = true;
} catch (e) {
} catch (err) {
const e = err as Error;
this.error = e;
debug("error: %o", e);
this.emit("error", e);
Expand Down

0 comments on commit 096258f

Please sign in to comment.