diff --git a/packages/consent/consent-tools/src/domain/validation/validation-error.ts b/packages/consent/consent-tools/src/domain/validation/validation-error.ts index ccab434c2..68dd9d370 100644 --- a/packages/consent/consent-tools/src/domain/validation/validation-error.ts +++ b/packages/consent/consent-tools/src/domain/validation/validation-error.ts @@ -4,7 +4,7 @@ export class ValidationError extends AnalyticsConsentError { constructor(message: string, received?: any) { if (arguments.length === 2) { // to ensure that explicitly passing undefined as second argument still works - message += `(Received: ${JSON.stringify(received)})` + message += ` (Received: ${JSON.stringify(received)})` } super('ValidationError', `[Validation] ${message}`) }