Skip to content

Commit

Permalink
chore(sdk): change retrieveLaunchParams error message to more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
wishyoudie committed Jul 10, 2024
1 parent 42d4d19 commit 0d2f10c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/sdk/src/launch-params/retrieveLaunchParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@ export function retrieveLaunchParams(): LaunchParams {
}
}

throw new Error('Unable to retrieve launch parameters from any known source.');
throw new Error('Unable to retrieve launch parameters from any known source. Perhaps, you are opened your app outside of Telegram?\n\n 📖 Refer to docs for more information:\n https://docs.telegram-mini-apps.com/packages/telegram-apps-sdk/environment\n');
}

0 comments on commit 0d2f10c

Please sign in to comment.