Commit 7d1263b
committed
fix: improve ContextError messages for trial commands
Pass the usage example with placeholder as the command arg
(e.g., 'sentry trial list <org>') instead of the bare command.
Use default alternatives (DSN detection, SENTRY_ORG env var)
instead of overriding with just the positional syntax.
Before:
Organization is required.
Specify it using:
sentry trial list
Or:
- sentry trial list <org>
After:
Organization is required.
Specify it using:
sentry trial list <org>
Or:
- Run from a directory with a Sentry-configured project
- Set SENTRY_ORG and SENTRY_PROJECT (or SENTRY_DSN) environment variables1 parent b4f1ad2 commit 7d1263b
2 files changed
+2
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
235 | | - | |
236 | | - | |
| 234 | + | |
237 | 235 | | |
238 | 236 | | |
239 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 128 | + | |
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
| |||
0 commit comments