Log OTA errors properly

This commit is contained in:
Samuel Newman
2025-09-29 11:53:24 +03:00
parent 7f4e3091f7
commit d133a9ac2d
+4 -4
View File
@@ -145,8 +145,8 @@ export function useOTAUpdates() {
} else {
logger.debug('No update available.')
}
} catch (e) {
logger.error('OTA Update Error', {error: `${e}`})
} catch (err) {
logger.error('OTA Update Error', {safeMessage: err})
}
}, 10e3)
}, [])
@@ -154,8 +154,8 @@ export function useOTAUpdates() {
const onIsTestFlight = React.useCallback(async () => {
try {
await updateTestflight()
} catch (e: any) {
logger.error('Internal OTA Update Error', {error: `${e}`})
} catch (err: any) {
logger.error('Internal OTA Update Error', {safeMessage: err})
}
}, [])