Skip to content

Commit 2fc2edd

Browse files
authored
Fix error in worker (#540)
1 parent d12b605 commit 2fc2edd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/ffmpeg/src/worker.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,11 @@ self.onmessage = async ({
177177
throw ERROR_UNKNOWN_MESSAGE_TYPE;
178178
}
179179
} catch (e) {
180-
self.postMessage({ id, type: FFMessageType.ERROR, data: e as Error });
180+
self.postMessage({
181+
id,
182+
type: FFMessageType.ERROR,
183+
data: (e as Error).toString(),
184+
});
181185
return;
182186
}
183187
if (data instanceof Uint8Array) {

0 commit comments

Comments
 (0)