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

Improve error message when triggering an supported event #1190

Merged
merged 2 commits into from
May 29, 2024

Conversation

tlefevre-stripe
Copy link
Contributor

@tlefevre-stripe tlefevre-stripe commented May 21, 2024

Reviewers

r? @
cc @stripe/developer-products

Summary

Before, when running stripe trigger <EVENT>, we may get this error message:

The event ‘xxx’ is not supported by the Stripe CLI.

With this PR, the error contains more information to help developers figure out next steps:

The event xxx is not supported by Stripe CLI. To trigger unsupported events, use the Stripe API or Dashboard to perform actions that lead to the event you want to trigger (for example, create a Customer to generate a customer.created event). You can also create a custom fixture: https://docs.stripe.com/cli/fixtures

@tlefevre-stripe tlefevre-stripe requested a review from a team as a code owner May 21, 2024 08:17
@tlefevre-stripe tlefevre-stripe changed the title Improve error message when triggering an event that isn't supported Improve error message when triggering an supported event May 21, 2024
@tomer-stripe tomer-stripe merged commit ef6240e into master May 29, 2024
7 checks passed
@tomer-stripe tomer-stripe deleted the tl/trigger-error branch May 29, 2024 15:55
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.

2 participants