From d133a9ac2d9b04dc6b459637b1395accdda5bf19 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Mon, 29 Sep 2025 11:53:24 +0300 Subject: [PATCH] Log OTA errors properly --- src/lib/hooks/useOTAUpdates.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lib/hooks/useOTAUpdates.ts b/src/lib/hooks/useOTAUpdates.ts index 9c57506060..4529d205b0 100644 --- a/src/lib/hooks/useOTAUpdates.ts +++ b/src/lib/hooks/useOTAUpdates.ts @@ -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}) } }, [])