From 3dc4115c8b183446017215db02533d2f1c7cff3b Mon Sep 17 00:00:00 2001 From: FerhatE Date: Tue, 22 Aug 2017 07:15:56 +0300 Subject: [PATCH] docs(aio): fix "Error handling" section in "HttpClient" (#18821) Removed additional curly brackets to fix blocks. Also replaced tab with 2 spaces. PR Close #18821 --- aio/content/guide/http.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aio/content/guide/http.md b/aio/content/guide/http.md index a21e0d821a..dcce542643 100644 --- a/aio/content/guide/http.md +++ b/aio/content/guide/http.md @@ -126,7 +126,7 @@ http err => { console.log('Something went wrong!'); } - }); + ); ``` #### Getting error details @@ -141,7 +141,7 @@ In both cases, you can look at the `HttpErrorResponse` to figure out what happen http .get('/api/items') .subscribe( - data => {...}, + data => {...}, (err: HttpErrorResponse) => { if (err.error instanceof Error) { // A client-side or network error occurred. Handle it accordingly. @@ -152,7 +152,7 @@ http console.log(`Backend returned code ${err.status}, body was: ${err.error}`); } } - }); + ); ``` #### `.retry()`