Commit 0963e66
authored
## Problem
When `sentry issue list` gets 403 Forbidden, the error shows a bare
message without guidance. Affects **41 users**
([CLI-97](https://sentry.sentry.io/issues/7294207811/)).
## Fix
Added `build403Detail()` helper and `enrichIssueListError()` that enrich
403 errors with token scope suggestions — matching the guidance added to
org listing in PR #498:
```
Failed to fetch issues from 1 project(s): API request failed: 403 Forbidden
Suggestions:
• Your auth token may lack the required scopes (org:read, project:read)
• Re-authenticate with: sentry auth login
• Verify project membership: sentry project list <org>/
```
Applied to both code paths (`handleResolvedTargets` and org-all mode).
The `enrichIssueListError()` helper DRYs up the 400/403 enrichment used
by both paths.
1 parent eb0c003 commit 0963e66
2 files changed
+71
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
830 | 830 | | |
831 | 831 | | |
832 | 832 | | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
833 | 836 | | |
834 | 837 | | |
835 | 838 | | |
| |||
838 | 841 | | |
839 | 842 | | |
840 | 843 | | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
841 | 847 | | |
842 | 848 | | |
843 | 849 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
848 | | - | |
849 | | - | |
850 | | - | |
851 | | - | |
852 | | - | |
853 | | - | |
854 | | - | |
| 844 | + | |
855 | 845 | | |
856 | 846 | | |
857 | 847 | | |
| |||
966 | 956 | | |
967 | 957 | | |
968 | 958 | | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
969 | 1016 | | |
970 | 1017 | | |
971 | 1018 | | |
| |||
1118 | 1165 | | |
1119 | 1166 | | |
1120 | 1167 | | |
1121 | | - | |
1122 | | - | |
1123 | | - | |
1124 | | - | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
1125 | 1174 | | |
1126 | 1175 | | |
1127 | 1176 | | |
| |||
1130 | 1179 | | |
1131 | 1180 | | |
1132 | 1181 | | |
1133 | | - | |
| 1182 | + | |
1134 | 1183 | | |
1135 | 1184 | | |
1136 | 1185 | | |
| |||
0 commit comments