Last active
January 15, 2020 17:52
-
-
Save rockchalkwushock/27a4ef4d8745bf412670bbe06aad75c6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { ApolloError } from 'apollo-boost' | |
// We may not need to pass the 'endpoint' through I forget what the ApolloError exposes for information. | |
export const onError (error: ApolloError, enpoint: string): void => { | |
// Add error logging service. | |
console.error(`Endpoint: ${endpoint}`, error) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment