Symptom
If the API returns an error for GET /courses/:id, the frontend crashes with TypeError: Cannot read properties of undefined (reading 'clientName') instead of showing a clean error message.
Expected: The error handler should format the error with the client name, e.g., "[CourseApiClient] HTTP 404: Not Found".
Context
CourseApiClient extends BaseApiClient. The handleError method on the base class references this.clientName to build a formatted error message. The fetchCourse method catches errors from the HTTP call.
Hints
TypeScript
TypeScript ready
Test Output
▶
Click "Run Tests" to execute your code