From 4db1c81e6307a4f0746acfe712fb38ed9d038ef1 Mon Sep 17 00:00:00 2001 From: Selcuk Kekec Date: Fri, 27 Sep 2024 19:49:03 +0200 Subject: [PATCH] fix: improve exception messages for required actions (#25) --- src/client.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client.ts b/src/client.ts index e7176ab..18f93f0 100644 --- a/src/client.ts +++ b/src/client.ts @@ -82,7 +82,9 @@ export const LibreLinkUpClient = ({ if (loginResponse.data.status === 4) { throw new Error( - `Additional action required for your account: ${loginResponse.data.data?.step?.componentName || 'unknown'}. Please login via app and perform required steps and try again.` + `Additional action required for your account: ${ + loginResponse.data.data?.step?.componentName || 'unknown' + }. Please login via app and perform required steps and try again.` ); }