Skip to content

Commit 91fa4c7

Browse files
SinanMtlf
authored andcommitted
Catch method added for error handling of commit (#36)
1 parent f96ec85 commit 91fa4c7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

graphql.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,8 @@
403403
})
404404
})
405405
return newResponses
406+
}).catch(function (responses) {
407+
return { error: true, errors: responses }
406408
}).finally(function (responses) {
407409
that._transaction[mergeName] = { query: [], mutation: [] }
408410
return responses

0 commit comments

Comments
 (0)