Commit f8ae8b9
Output a friendlier error message if there is an unexpected response from the GitHub API (#5)
* Raise error on invalid GitHub API response
* Resolve missing import
* Improve error handling with better validation and messages
- Add comprehensive API response validation
- Check HTTP status codes before parsing JSON
- Provide user-friendly error messages for common issues
- Add proper JSON parsing error handling
- Improve network error reporting
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: Peter Baumgartner <pete@lincolnloop.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent e8e7c5a commit f8ae8b9
1 file changed
+38
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
14 | 31 | | |
15 | 32 | | |
16 | 33 | | |
| |||
60 | 77 | | |
61 | 78 | | |
62 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
63 | 91 | | |
64 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
65 | 99 | | |
66 | 100 | | |
67 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
68 | 104 | | |
69 | 105 | | |
70 | 106 | | |
| |||
0 commit comments