Skip to content

Commit c86957f

Browse files
authored
Merge pull request #25 from m1n0/master
Fix resourceNotFoundResponse missing error bag.
2 parents e99018e + 11a69c0 commit c86957f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Serializer/JsonApiResponseTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ protected function resourceDeletedResponse($json)
6767
*/
6868
protected function resourceNotFoundResponse($json)
6969
{
70-
return $this->createResponse(new ResourceNotFound($json));
70+
$error = new Error('Resource not Found', json_decode($json));
71+
72+
return $this->createResponse(new ResourceNotFound(new ErrorBag([$error])));
7173
}
7274

7375
/**

0 commit comments

Comments
 (0)