Skip to content

Commit 80caefc

Browse files
committed
Fix resourceNotFoundResponse missing errir bag.
1 parent e5229fc commit 80caefc

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)