diff --git a/More/Repository/PostRepository.php b/More/Repository/PostRepository.php index 991a398..417bf52 100644 --- a/More/Repository/PostRepository.php +++ b/More/Repository/PostRepository.php @@ -28,7 +28,7 @@ class PostRepository $arrayData = $this->persistence->retrieve($id); if (is_null($arrayData)) { - throw new \InvalidArgumentException(sprintf('Post with ID %d does not exist')); + throw new \InvalidArgumentException(sprintf('Post with ID %d does not exist', $id)); } return Post::fromState($arrayData);