socialnetworknews-web

A open-source Paper.li clone
git clone git://archive.git.mtrnord.blog/SocialNetworkNews/socialnetworknews-web.git
Log | Files | Refs | README | LICENSE

commit 5a40d06bf47f91e2a6463f15954aacdbf4e9a11a
parent fb4c1e5c9187c2e572719179321c867958bef063
Author: MTRNord <mtrnord1@gmail.com>
Date:   Mon, 26 Feb 2018 16:16:47 +0100

[object Object] isn't a really helpful error trace... Stringify it

Diffstat:
Msrc/app/app.module.ts | 1-
Msrc/app/papers-list/papers-list.component.ts | 2+-
Msrc/app/tweet-list/tweet-list.component.ts | 2+-
3 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/app/app.module.ts b/src/app/app.module.ts @@ -56,7 +56,6 @@ export const config: GalleryConfig = { ], imports: [ BrowserModule.withServerTransition({appId: 'snn-app'}), - ServiceWorkerModule.register('/ngsw-worker.js'), MDBBootstrapModule.forRoot(), AppRoutingModule, ScrollbarModule, diff --git a/src/app/papers-list/papers-list.component.ts b/src/app/papers-list/papers-list.component.ts @@ -22,7 +22,7 @@ export class PapersListComponent { this.apiService.getPapers() .subscribe( data => { this.data = this.chunk(data, 3); }, - err => Raven.captureException(err.toString()), + err => Raven.captureException(new Error(JSON.stringify(err))), () => console.log('done loading Papers') ); } diff --git a/src/app/tweet-list/tweet-list.component.ts b/src/app/tweet-list/tweet-list.component.ts @@ -27,7 +27,7 @@ export class TweetListComponent { this.apiService.getYesterday(this.uuid) .subscribe( data => { this.data = this.chunk(data.tweets, 3); }, - err => Raven.captureException(err.toString()), + err => Raven.captureException(new Error(JSON.stringify(err))), () => console.log('done loading Yesterday') ); }