Browse Source

Exception

master
Florian Eisenmenger 1 year ago
parent
commit
eb84fcc737
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Mapper/PostingApiToEntityMapper.php

+ 1
- 1
src/Mapper/PostingApiToEntityMapper.php View File

@@ -46,7 +46,7 @@ class PostingApiToEntityMapper implements MapperInterface
MicroMapperInterface::MAX_DEPTH => 1,
]);
if ($dto->product === null) {
throw new \Exception('Partner missing');
throw new \Exception('Product missing');
}
$product = $this->microMapper->map($dto->product, Product::class, [
MicroMapperInterface::MAX_DEPTH => 1,


Loading…
Cancel
Save