Skip to content

Commit

Permalink
Merge pull request #4911 from hippware/revert-c6e4cc5d
Browse files Browse the repository at this point in the history
Revert "Post common graphql errors to bugsnag instead of throwing."
  • Loading branch information
aksonov authored Mar 13, 2020
2 parents e8724d3 + f1f8520 commit 9c87866
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/store/Transport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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])}`)
}
}

Expand Down

0 comments on commit 9c87866

Please sign in to comment.