From f1f852021a50741c7ae620438074625ae8469131 Mon Sep 17 00:00:00 2001 From: Beng Tan Date: Fri, 13 Mar 2020 13:50:44 +0800 Subject: [PATCH] Revert "Post common graphql errors to bugsnag instead of throwing." This reverts commit c6e4cc5dad5fade14f37201e3bf173b2631f6ba8. --- src/store/Transport.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/store/Transport.ts b/src/store/Transport.ts index 80d9d9d12..70aef7d2f 100644 --- a/src/store/Transport.ts +++ b/src/store/Transport.ts @@ -10,7 +10,6 @@ import {IProfilePartial, FriendShareTypeEnum, IFriendShareConfig} from '../model import {ILocationSnapshot, IBotPost} from '../wocky' import {IBot, IBotIn} from '../model/Bot' import {ILocation} from '../model/Location' -import {notifyBugsnag} from '../utils/logger' const introspectionQueryResultData = require('./fragmentTypes.json') const TIMEOUT = 10000 @@ -1368,10 +1367,7 @@ export class Transport { res = await this.mutate({mutation, variables}) if (res.data && !res.data![name].successful) { // console.error('voidMutation error with ', name, JSON.stringify(res.data[name])) - notifyBugsnag( - new Error(`GraphQL ${name} error: ${JSON.stringify(res.data![name])}`), - `graphql_${name}_error` - ) + throw new Error(`GraphQL ${name} error: ${JSON.stringify(res.data![name])}`) } }