Skip to content

Commit d133a9a

Browse files
committed
Log OTA errors properly
1 parent 7f4e309 commit d133a9a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib/hooks/useOTAUpdates.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,17 +145,17 @@ export function useOTAUpdates() {
145145
} else {
146146
logger.debug('No update available.')
147147
}
148-
} catch (e) {
149-
logger.error('OTA Update Error', {error: `${e}`})
148+
} catch (err) {
149+
logger.error('OTA Update Error', {safeMessage: err})
150150
}
151151
}, 10e3)
152152
}, [])
153153

154154
const onIsTestFlight = React.useCallback(async () => {
155155
try {
156156
await updateTestflight()
157-
} catch (e: any) {
158-
logger.error('Internal OTA Update Error', {error: `${e}`})
157+
} catch (err: any) {
158+
logger.error('Internal OTA Update Error', {safeMessage: err})
159159
}
160160
}, [])
161161

0 commit comments

Comments
 (0)