Improve error logging
This commit is contained in:
parent
6885fb2b41
commit
4eabc2d65a
49 changed files with 212 additions and 188 deletions
|
@ -40,7 +40,7 @@ export const PhotoCarouselPicker = ({
|
|||
onSelectPhotos([uri, ...selectedPhotos])
|
||||
} catch (err: any) {
|
||||
// ignore
|
||||
store.log.warn('Error using camera', err.toString())
|
||||
store.log.warn('Error using camera', err)
|
||||
}
|
||||
}, [store.log, selectedPhotos, onSelectPhotos])
|
||||
|
||||
|
@ -56,7 +56,7 @@ export const PhotoCarouselPicker = ({
|
|||
onSelectPhotos([finalUri, ...selectedPhotos])
|
||||
} catch (err: any) {
|
||||
// ignore
|
||||
store.log.warn('Error selecting photo', err.toString())
|
||||
store.log.warn('Error selecting photo', err)
|
||||
}
|
||||
},
|
||||
[store.log, selectedPhotos, onSelectPhotos],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue