Commit 785f406
committed
refactor(error handling): centralize error handling in middleware
- Remove specific error handling in individual routes
- Rely on centralized errorHandler middleware for consistent error handling
- Update comments to reflect new error handling approach
- Improve code maintainability and reduce duplication1 parent 2df8f32 commit 785f406
3 files changed
+8
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | 197 | | |
220 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
221 | 202 | | |
222 | 203 | | |
223 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | 174 | | |
194 | | - | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
195 | 178 | | |
196 | 179 | | |
197 | 180 | | |
| |||
0 commit comments