Skip to content

Commit

Permalink
fix: improve exception messages for required actions (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
khskekec committed Sep 27, 2024
1 parent 4576538 commit 4db1c81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.`
);
}

Expand Down

0 comments on commit 4db1c81

Please sign in to comment.