private handleError(error: any) {
// previously
// return Observable.throw('Some error information');
// now
return throwError('Some error information');
}
See also How to catch exception correctly from http.request()?
private handleError(error: any) {
// previously
// return Observable.throw('Some error information');
// now
return throwError('Some error information');
}
See also How to catch exception correctly from http.request()?