Skip to content

Commit 9c088c8

Browse files
committed
update warning
1 parent 3696df9 commit 9c088c8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/component/config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ export const update = mutation({
1919
export function validateConfig(config: Partial<Config>) {
2020
if (config.maxParallelism !== undefined) {
2121
if (config.maxParallelism > MAX_POSSIBLE_PARALLELISM) {
22-
throw new Error(
23-
`maxParallelism must be <= ${MAX_PARALLELISM_SOFT_LIMIT}`,
24-
);
22+
throw new Error(`maxParallelism must be <= ${MAX_POSSIBLE_PARALLELISM}`);
2523
} else if (config.maxParallelism > MAX_PARALLELISM_SOFT_LIMIT) {
2624
createLogger(config.logLevel ?? DEFAULT_LOG_LEVEL).warn(
2725
`maxParallelism should be <= ${MAX_PARALLELISM_SOFT_LIMIT}, but is set to ${config.maxParallelism}. This will be an error in a future version.`,

0 commit comments

Comments
 (0)