Angular - HTTP Client
Why does this Angular HTTP error handler fail?
Assuming the caller subscribes and expects an error object.
return this.http.get(url).pipe(
catchError(() => {
return throwError('Error occurred');
})
);Assuming the caller subscribes and expects an error object.
