We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f15d60 commit 19482faCopy full SHA for 19482fa
packages/vue-apollo/src/smart-query.js
@@ -154,7 +154,7 @@ export default class SmartQuery extends SmartApollo {
154
// If `errorPolicy` is set to `all`, an error won't be thrown
155
// Instead result will have an `errors` array of GraphQL Errors
156
// so we need to reconstruct an error object similar to the normal one
157
- if (errors) {
+ if (errors && errors.length) {
158
const e = new Error(`GraphQL error: ${errors.map(e => e.message).join(' | ')}`)
159
Object.assign(e, {
160
graphQLErrors: errors,
0 commit comments