Skip to content

Commit 602a6cc

Browse files
committed
Make ResourceNotFoundException message informative for individual resources
1 parent 36857be commit 602a6cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Exception/ResourceNotFoundException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class ResourceNotFoundException extends RuntimeException
1010

1111
public function __construct(string $type, $id = null)
1212
{
13-
parent::__construct("Resource [$type] not found.");
13+
parent::__construct("Resource [$type".($id !== null ? ".$id" : '').'] not found.');
1414

1515
$this->type = $type;
1616
}

0 commit comments

Comments
 (0)