docs(http): fix typo: send the server -> send the error

Closes #868
This commit is contained in:
Justin Santa Barbara 2016-02-21 11:42:10 -05:00 committed by Ward Bell
parent ac4b680f1f
commit 1010034249
2 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ export class HeroService {
}
private handleError (error: any) {
// in a real world app, we may send the server to some remote logging infrastructure
// in a real world app, we may send the error to some remote logging infrastructure
// instead of just logging it to the console
console.error(error);
return Promise.reject(error.message || error.json().error || 'Server error');

View File

@ -63,7 +63,7 @@ export class HeroService {
// #docregion v1
// #docregion error-handling
private handleError (error: Response) {
// in a real world app, we may send the server to some remote logging infrastructure
// in a real world app, we may send the error to some remote logging infrastructure
// instead of just logging it to the console
console.error(error);
return Observable.throw(error.json().error || 'Server error');