diff --git a/src/types/targetValidators.spec.ts b/src/types/targetValidators.spec.ts index 4436982..33216d3 100644 --- a/src/types/targetValidators.spec.ts +++ b/src/types/targetValidators.spec.ts @@ -630,7 +630,7 @@ describe('validateStreamConfig', () => { webSourcePath: '' } as unknown as StreamConfig) ).toThrowError( - 'Invalid stream config: `webSourcePath` cannot be empty, null or undefined.' + 'Invalid stream config: `webSourcePath` should contain the path to your frontend application eg build, dist, or src.' ) }) @@ -642,7 +642,7 @@ describe('validateStreamConfig', () => { webSourcePath: null } as unknown as StreamConfig) ).toThrowError( - 'Invalid stream config: `webSourcePath` cannot be empty, null or undefined.' + 'Invalid stream config: `webSourcePath` should contain the path to your frontend application eg build, dist, or src.' ) }) @@ -654,7 +654,7 @@ describe('validateStreamConfig', () => { webSourcePath: undefined } as unknown as StreamConfig) ).toThrowError( - 'Invalid stream config: `webSourcePath` cannot be empty, null or undefined.' + 'Invalid stream config: `webSourcePath` should contain the path to your frontend application eg build, dist, or src.' ) }) diff --git a/src/types/targetValidators.ts b/src/types/targetValidators.ts index c5b1b1f..0d0f068 100644 --- a/src/types/targetValidators.ts +++ b/src/types/targetValidators.ts @@ -322,7 +322,7 @@ export const validateStreamConfig = ( if (streamConfig.streamWeb && !streamConfig.webSourcePath) { throw new Error( - 'Invalid stream config: `webSourcePath` cannot be empty, null or undefined.' + 'Invalid stream config: `webSourcePath` should contain the path to your frontend application eg build, dist, or src.' ) }