Skip to content

Commit f8c75b4

Browse files
committed
MAGE-838 Add store ID to error mismatch in case a config mismatch outside of current admin scope (SaveSettings iterates over all)
1 parent 6a87104 commit f8c75b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Model/Product/ReplicaManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,12 +280,12 @@ protected function isReplicaConfigurationValid(string $primaryIndexName, int $st
280280
$postfix .= ' Reverting to previous configuration.';
281281
}
282282
if ($validator->isTooManyCustomerGroups()) {
283-
throw (new TooManyCustomerGroupsAsReplicasException(__("You have too many customer groups to enable virtual replicas on the pricing sort. $postfix")))
283+
throw (new TooManyCustomerGroupsAsReplicasException(__("You have too many customer groups to enable virtual replicas on the pricing sort for store $storeId. $postfix")))
284284
->withReplicaCount($validator->getReplicaCount())
285285
->withPriceSortReplicaCount($validator->getPriceSortReplicaCount());
286286
}
287287
else {
288-
throw (new ReplicaLimitExceededException(__("Replica limit exceeded. $postfix")))
288+
throw (new ReplicaLimitExceededException(__("Replica limit exceeded for store ID $storeId. $postfix")))
289289
->withReplicaCount($validator->getReplicaCount());
290290
}
291291
}

0 commit comments

Comments
 (0)