Improve error handling during group sends
This commit is contained in:
parent
f0a3735ca2
commit
991580a1ed
58 changed files with 299 additions and 324 deletions
|
@ -13,9 +13,9 @@ const loadImageData = async (input: Input): Promise<ImageData> => {
|
|||
canvasOrError => {
|
||||
if (canvasOrError instanceof Event && canvasOrError.type === 'error') {
|
||||
const processError = new Error(
|
||||
'imageToBlurHash: Failed to process image'
|
||||
'imageToBlurHash: Failed to process image',
|
||||
{ cause: canvasOrError }
|
||||
);
|
||||
processError.originalError = canvasOrError;
|
||||
reject(processError);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue