Try to capture more information

This commit is contained in:
Zhiyuan Zheng 2021-03-19 22:18:23 +01:00
parent 15cf29d952
commit 6f0a0c43fe
No known key found for this signature in database
GPG Key ID: 078A93AB607D85E0
1 changed files with 2 additions and 1 deletions

View File

@ -60,7 +60,8 @@ const apiGeneral = async <T = unknown>({
})
.catch(error => {
if (sentry) {
Sentry.Native.captureException(error, { extra: error })
Sentry.Native.setExtras(error.response)
Sentry.Native.captureException(error)
}
if (error.response) {