Skip to content

Commit

Permalink
Better error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mamazu committed Jun 20, 2024
1 parent 454f741 commit 006f6cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factory/OrderItemOptionFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function createNewFromStrings(
): OrderItemOptionInterface {
$customerOption = $this->customerOptionRepository->findOneByCode($customerOptionCode);
if ($customerOption === null) {
throw new Exception('Could not find customer option with code');
throw new Exception(sprintf('Could not find customer option "%s"', $customerOptionCode));
}

if (CustomerOptionTypeEnum::isSelect($customerOption->getType())) {
Expand Down

0 comments on commit 006f6cb

Please sign in to comment.