Better error reporting in StickerGrid
This commit is contained in:
parent
00e4a4c1fd
commit
f720904ca5
|
@ -59,7 +59,10 @@ const InnerGrid = SortableContainer(
|
||||||
const stickerImage = await processStickerImage(path);
|
const stickerImage = await processStickerImage(path);
|
||||||
actions.addImageData(stickerImage);
|
actions.addImageData(stickerImage);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
window.SignalContext.log.error('Error processing image:', e);
|
window.SignalContext.log.error(
|
||||||
|
'Error processing image:',
|
||||||
|
e?.stack ? e.stack : String(e)
|
||||||
|
);
|
||||||
actions.removeSticker(path);
|
actions.removeSticker(path);
|
||||||
actions.addToast({
|
actions.addToast({
|
||||||
key:
|
key:
|
||||||
|
|
Loading…
Reference in New Issue