chore: show workers that user passed value
This commit is contained in:
parent
edd812a1dc
commit
24ac714e22
|
|
@ -226,7 +226,7 @@ function resolveReporters(reporters: Config['reporter'], rootDir: string): Repor
|
||||||
function resolveWorkes(workers: string) {
|
function resolveWorkes(workers: string) {
|
||||||
const parsedWorkers = parseInt(workers, 10);
|
const parsedWorkers = parseInt(workers, 10);
|
||||||
if (isNaN(parsedWorkers)) {
|
if (isNaN(parsedWorkers)) {
|
||||||
throw new Error('Workers must be a number or percentage.');
|
throw new Error(`Workers ${workers} must be a number or percentage.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
return parsedWorkers;
|
return parsedWorkers;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue