diff --git a/src/Exception/ResourceNotFoundException.php b/src/Exception/ResourceNotFoundException.php index e83407f..642381b 100644 --- a/src/Exception/ResourceNotFoundException.php +++ b/src/Exception/ResourceNotFoundException.php @@ -10,7 +10,7 @@ class ResourceNotFoundException extends RuntimeException public function __construct(string $type, $id = null) { - parent::__construct("Resource [$type] not found."); + parent::__construct("Resource [$type".($id !== null ? ".$id" : '').'] not found.'); $this->type = $type; }