Skip to content

Commit

Permalink
Fixed exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Lasse Lehtinen committed Nov 18, 2024
1 parent ae5c2cd commit e530406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Groschen.php
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ public function getProductFormFeatures()
$onixCode = $accessibilityDetailsMapping->where('id', $accessibilityDetailId)->pluck('onixCode')->first();

if (is_null($onixCode)) {
throw new Exception('Could not find mapping for ePub accessiblity type with id '.$hazardId);
throw new Exception('Could not find mapping for ePub accessiblity type with id '.$accessibilityDetailId);
}

$productFormFeatures->push([
Expand All @@ -533,7 +533,7 @@ public function getProductFormFeatures()
$onixCode = $ebookStandardsMapping->where('id', $this->product->productionDetails->ebookStandardId)->pluck('onixCode')->first();

if (is_null($onixCode)) {
throw new Exception('Could not find mapping for ePub accessiblity type with id '.$hazardId);
throw new Exception('Could not find mapping for ePub accessiblity type with id '.$this->product->productionDetails->ebookStandardId);
}

$productFormFeatures->push([
Expand Down

0 comments on commit e530406

Please sign in to comment.