Fix error in worker (#540)
This commit is contained in:
parent
d12b605536
commit
2fc2edd476
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user