Make ResourceNotFoundException message informative for individual resources

This commit is contained in:
Toby Zerner 2019-02-04 18:35:52 +10:30
parent 36857bec60
commit 602a6cca7d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}