commit a0b8b82d16cfc976168912856eba4f8ef4243170
parent 071688ed417aa4900fc3e749796b81305379e801
Author: MTRNord <mtrnord1@gmail.com>
Date: Mon, 12 Mar 2018 22:18:32 +0100
Make the error message a bit more clear on why it happened
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/app/papers-list/papers-list.component.ts b/src/app/papers-list/papers-list.component.ts
@@ -39,7 +39,8 @@ export class PapersListComponent {
return Observable.throw({error: 'No retry'});
})
.take(5)
- .concat(Observable.throw({error: 'Sorry, there was an error (after 5 retries)'}));
+ // TODO: Allow to link to a Status Page
+ .concat(Observable.throw({error: 'Sorry, there was an error (after 5 retries). This probably means we can\'t reach out API Server :('}));
})
.subscribe(
data => { this.data = this.chunk(data, 3); },
diff --git a/src/app/tweet-list/tweet-list.component.ts b/src/app/tweet-list/tweet-list.component.ts
@@ -47,7 +47,8 @@ export class TweetListComponent implements OnInit {
return Observable.throw({error: 'No retry'});
})
.take(5)
- .concat(Observable.throw({error: 'Sorry, there was an error (after 5 retries)'}));
+ // TODO: Allow to link to a Status Page
+ .concat(Observable.throw({error: 'Sorry, there was an error (after 5 retries). This probably means we can\'t reach out API Server :('}));
})
.subscribe(
data => { this.data = this.chunk(data.tweets, 3); },