Skip to content

Commit

Permalink
Merge pull request #255 from wmde/improve-exception-messages-2
Browse files Browse the repository at this point in the history
Improve exception messages
  • Loading branch information
moiikana authored Oct 22, 2024
2 parents 11b010f + 63c5daa commit 123ac1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DataAccess/DoctrineDonationRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function getDonationById( int $id ): ?Donation {
try {
return $converter->createFromLegacyObject( $doctrineDonation );
} catch ( \InvalidArgumentException $ex ) {
throw new GetDonationException( $ex, "Could not get donation with id '$id'" );
throw new GetDonationException( $ex, "Could not convert donation with id '$id' - " . $ex->getMessage() );
}
}
}

0 comments on commit 123ac1e

Please sign in to comment.