FIX: Pass fileName to error handler for media optimization (#14058)
The file name is used to look up the promise to resolve; it was being passed for the successful path but not for the error path.
This commit is contained in:
parent
9b7c17b925
commit
90ab520d06
|
@ -139,7 +139,8 @@ onmessage = async function (e) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
postMessage({
|
postMessage({
|
||||||
type: "error",
|
type: "error",
|
||||||
file: e.data.file
|
file: e.data.file,
|
||||||
|
fileName: e.data.fileName
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue