Skip to content

Commit

Permalink
Merge pull request #25 from m1n0/master
Browse files Browse the repository at this point in the history
Fix resourceNotFoundResponse missing error bag.
  • Loading branch information
nilportugues authored Jul 31, 2017
2 parents e99018e + 11a69c0 commit c86957f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Serializer/JsonApiResponseTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ protected function resourceDeletedResponse($json)
*/
protected function resourceNotFoundResponse($json)
{
return $this->createResponse(new ResourceNotFound($json));
$error = new Error('Resource not Found', json_decode($json));

return $this->createResponse(new ResourceNotFound(new ErrorBag([$error])));
}

/**
Expand Down

0 comments on commit c86957f

Please sign in to comment.