error cause
This commit is contained in:
parent
a541b4fa1e
commit
93ba106ffb
@ -265,7 +265,9 @@ class AddTextToImage extends Operation {
|
|||||||
}
|
}
|
||||||
return imageBuffer.buffer;
|
return imageBuffer.buffer;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
throw new OperationError(`Error adding text to image. (${err})`);
|
throw new OperationError(`Error adding text to image. (${err})`, {
|
||||||
|
cause: err,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user