Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: enhanced error message for missing canister id #759

Merged
merged 4 commits into from
Aug 29, 2023

Conversation

krpeacock
Copy link
Contributor

@krpeacock krpeacock commented Aug 28, 2023

Description

As a common error, many users report getting Impossible to convert undefined to Principal without knowing what they need to do. This PR adds a more helpful error at the point of Actor creation, providing a more helpful suggestion for newer developers. For example: https://discord.com/channels/748416164832608337/748416164832608341/1145754858448756766

Fixes # (issue)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.

Checklist:

  • My changes follow the guidelines in CONTRIBUTING.md.
  • The title of this PR complies with Conventional Commits.
  • I have edited the CHANGELOG accordingly.
  • I have made corresponding changes to the documentation.

@krpeacock krpeacock requested a review from a team as a code owner August 28, 2023 18:02
@github-actions
Copy link
Contributor

github-actions bot commented Aug 28, 2023

size-limit report 📦

Path Size
@dfinity/agent 87.17 KB (+0.16% 🔺)
@dfinity/candid 13.52 KB (0%)
@dfinity/principal 5.15 KB (0%)
@dfinity/auth-client 92.54 KB (0%)
@dfinity/assets 89.7 KB (+0.16% 🔺)
@dfinity/identity 89.81 KB (0%)
@dfinity/identity-secp256k1 232.27 KB (+0.06% 🔺)

@krpeacock krpeacock merged commit ac76756 into main Aug 29, 2023
14 checks passed
@krpeacock krpeacock deleted the kyle/principal-not-defined branch August 29, 2023 17:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants