Skip to content

Commit

Permalink
Merge pull request #612 from Bizordec/fix-bridge-error
Browse files Browse the repository at this point in the history
fix(bridge) change doc link in ERR_RETRIEVE_LP_FAILED error
  • Loading branch information
heyqbnk authored Jan 6, 2025
2 parents 0e4c182 + bd6c0c5 commit e09190d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/wild-bulldogs-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@telegram-apps/bridge": patch
---

Update the link returned if the `retrieveLaunchParams` function failed.
2 changes: 1 addition & 1 deletion packages/bridge/src/launch-params/retrieveLaunchParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export function retrieveLaunchParams(): LaunchParams {
throw new TypedError(ERR_RETRIEVE_LP_FAILED, [
'Unable to retrieve launch parameters from any known source. Perhaps, you have opened your app outside Telegram?',
'📖 Refer to docs for more information:',
'https://docs.telegram-mini-apps.com/packages/telegram-apps-sdk/environment',
'https://docs.telegram-mini-apps.com/packages/telegram-apps-bridge/environment',
'Collected errors:',
...errors.map(e => `— ${unwrapError(e)}`),
].join('\n'));
Expand Down

0 comments on commit e09190d

Please sign in to comment.