From eb84fcc7378e8963d4757adf73dde0bd5faa5f79 Mon Sep 17 00:00:00 2001 From: Florian Eisenmenger Date: Thu, 4 Apr 2024 15:03:35 +0200 Subject: [PATCH] Exception --- src/Mapper/PostingApiToEntityMapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mapper/PostingApiToEntityMapper.php b/src/Mapper/PostingApiToEntityMapper.php index 6dfe30d..a2e8592 100644 --- a/src/Mapper/PostingApiToEntityMapper.php +++ b/src/Mapper/PostingApiToEntityMapper.php @@ -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,