Skip to content

Commit 0e4a759

Browse files
committed
Better error when failing to creating a manual waitpoint after X attempts
1 parent aeb4a58 commit 0e4a759

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

internal-packages/run-engine/src/engine/systems/waitpointSystem.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export class WaitpointSystem {
334334
attempts++;
335335
if (attempts >= maxRetries) {
336336
throw new Error(
337-
`Failed to create waitpoint tag after ${maxRetries} attempts due to conflicts.`
337+
`Failed to create waitpoint after ${maxRetries} attempts due to conflicts.`
338338
);
339339
}
340340
} else {
@@ -343,9 +343,7 @@ export class WaitpointSystem {
343343
}
344344
}
345345

346-
throw new Error(
347-
`Failed to create waitpoint tag after ${maxRetries} attempts due to conflicts.`
348-
);
346+
throw new Error(`Failed to create waitpoint after ${maxRetries} attempts due to conflicts.`);
349347
}
350348

351349
/**

0 commit comments

Comments
 (0)