Repository navigation
Commit 9cf996d
committed
fix: improve error logging in TeamDetailPage
Issue: Console errors showing empty objects `{}` making debugging difficult
Changes:
- Split console.error into multiple lines for better readability
- Log each value separately to avoid serialization issues
- Added emojis (❌) for easier error spotting in console
- Added more context (total user projects count)
Before:
```
Project not found or user has no access: {}
TeamDetailPage error: {}
```
After:
```
❌ Project not found or user has no access
Requested Project ID: abc-123
User Project IDs: [...]
Codev User ID: user-456
Total user projects: 5
```
This will help diagnose project access issues more effectively.1 parent a0d3d6e commit 9cf996d
1 file changed
Lines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
| |||
0 commit comments