Skip to content

Commit

Permalink
Fix error in worker (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromewu authored Aug 10, 2023
1 parent d12b605 commit 2fc2edd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/ffmpeg/src/worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ self.onmessage = async ({
throw ERROR_UNKNOWN_MESSAGE_TYPE;
}
} catch (e) {
self.postMessage({ id, type: FFMessageType.ERROR, data: e as Error });
self.postMessage({
id,
type: FFMessageType.ERROR,
data: (e as Error).toString(),
});
return;
}
if (data instanceof Uint8Array) {
Expand Down

0 comments on commit 2fc2edd

Please sign in to comment.