Skip to content
Snippets Groups Projects
Commit 85d9ce7f authored by Julian's avatar Julian
Browse files

Display query path in graphql console errors

parent 76648f59
No related branches found
No related tags found
1 merge request!1123Resolve "Finalise Vuetify app as SPA"
......@@ -63,7 +63,7 @@ const apolloOpts = {
error: ({ graphQLErrors, networkError }, vm) => {
if (graphQLErrors) {
for (let err of graphQLErrors) {
console.error("GraphQL query error:", err.message);
console.error("GraphQL query error in query", err.path.join(".") , ":", err.message);
}
// Add a snackbar on all errors returned by the GraphQL endpoint
// If App is offline, don't add snackbar since only the ping query is active
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment