Add missing exception message
[MAILPOET-4629]
This commit is contained in:
@@ -11,7 +11,10 @@ class ConsistentStepMapRule implements WorkflowNodeVisitor {
|
||||
public function initialize(Workflow $workflow): void {
|
||||
foreach ($workflow->getSteps() as $id => $step) {
|
||||
if ($id !== $step->getId()) {
|
||||
throw Exceptions::workflowStructureNotValid(__('TODO', 'mailpoet'));
|
||||
// translators: %1$s is the ID of the step, %2$s is its index in the steps object.
|
||||
throw Exceptions::workflowStructureNotValid(
|
||||
sprintf(__("Step with ID '%1\$s' stored under a mismatched index '%2\$s'.", 'mailpoet'), $step->getId(), $id)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user