diff --git a/src/shared/configuration/configuration-errors.ts b/src/shared/configuration/configuration-errors.ts index 648e865..b7b6fcb 100644 --- a/src/shared/configuration/configuration-errors.ts +++ b/src/shared/configuration/configuration-errors.ts @@ -3,7 +3,7 @@ import { EventTrackerError } from '@/shared/error' export function throwNoConfigurationProvided() { const message = process.env.NODE_ENV === 'production' - ? '1' + ? '0' : `You've called configure function without a configuration object.` throw new EventTrackerError(message) diff --git a/src/shared/data-layer/data-layer-error.ts b/src/shared/data-layer/data-layer-error.ts index d3d6614..df48bff 100644 --- a/src/shared/data-layer/data-layer-error.ts +++ b/src/shared/data-layer/data-layer-error.ts @@ -12,7 +12,7 @@ export function throwIsServer() { export function throwIsNotDefined() { const message = process.env.NODE_ENV === 'production' - ? '1' + ? '2' : `The targetProperty is not defined. Make sure you didn't forget to add Google Tag Manager's script in your application. If you did but you don't use the default 'window.dataLayer' array, you can set your custom targetProperty with the configure function.` throw new EventTrackerError(message) @@ -21,7 +21,7 @@ export function throwIsNotDefined() { export function throwIsNotArray() { const message = process.env.NODE_ENV === 'production' - ? '1' + ? '3' : `The targetProperty is not an array. Either you didn't installed Google Tag Manager correctly or you configured the targetProperty incorrectly.` throw new EventTrackerError(message)