Skip to content

Commit

Permalink
Merge pull request #1347 from apollographql/calebmer-patch-1
Browse files Browse the repository at this point in the history
Better error stack reporting
  • Loading branch information
helfer authored Mar 1, 2017
2 parents f9e92d1 + 36c18dd commit 4e8875f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/QueryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ export class QueryManager {
try {
observer.error(apolloError);
} catch (e) {
console.error(`Error in observer.error \n${e.stack}`);
console.error('Error in observer.error \n', e.stack);
}
} else {
console.error('Unhandled error', apolloError, apolloError.stack);
Expand Down Expand Up @@ -441,7 +441,7 @@ export class QueryManager {
try {
observer.next(maybeDeepFreeze(this.transformResult(resultFromStore)));
} catch (e) {
console.error(`Error in observer.next \n${e.stack}`);
console.error('Error in observer.next \n', e.stack);
}
}
}
Expand Down

0 comments on commit 4e8875f

Please sign in to comment.