diff --git a/src/index.js b/src/index.js index 71699d1..df9d353 100644 --- a/src/index.js +++ b/src/index.js @@ -24,7 +24,7 @@ const customErrorFields = [ label: 'Error Code', name: 'errorCode', order: 2, - default: 'BLUEMIX_GRAPHQL_ERROR', + default: 'GRAMPS_ERROR', }, { label: 'GraphQL Model', @@ -71,7 +71,7 @@ export function GrampsError( data = null, message = '', description = null, - errorCode = 'BLUEMIX_GRAPHQL_ERROR', + errorCode = 'GRAMPS_ERROR', graphqlModel = null, targetEndpoint = null, docsLink = null, diff --git a/test/index.test.js b/test/index.test.js index 7d5c7ae..a483ccd 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -243,7 +243,7 @@ describe('GrAMPS Errors', () => { const error = GrampsError(); const defaultError = 'Internal Server Error'; const defaultMessage = 'An internal server error occurred'; - const defaultErrorCode = 'BLUEMIX_GRAPHQL_ERROR'; + const defaultErrorCode = 'GRAMPS_ERROR'; expect(error.isBoom).toBe(true); expect(error.isServer).toBe(true);