also looking at this
chore: enhance logging
#55
12 files
+379
-9
| @@ -0,0 +1,11 @@ | ||
| 1 | --- | |
| 2 | description: Error Handling and Validation specifics | |
| 3 | globs: | |
| 4 | --- | |
| 5 | ## Error Handling and Validation | |
| 6 | ||
| 7 | - Prioritize error handling: handle errors and edge cases early | |
| 8 | - Use early returns and guard clauses | |
| 9 | - Implement proper error logging and user-friendly messages | |
| 10 | - Use error boundaries for unexpected errors | |
| 11 | - when `neverthrow` is available, ensure errors are typed | |