Better error reporting in StickerGrid

This commit is contained in:
Fedor Indutny 2021-12-07 19:18:54 +01:00 committed by GitHub
parent 00e4a4c1fd
commit f720904ca5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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: