Skip to content

Commit

Permalink
Fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
kocsismate committed Oct 5, 2015
1 parent 66a6f3e commit fc7bf62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ class MyErrorHandlerMiddleware extends JsonApiErrorHandlerMiddleware
return $result;
}
} catch (\Exception $e) {
return $this->exceptionFactory->createGeneralException($request);
return $this->exceptionFactory->createApplicationErrorException($request)->getErrorDocument()->getResponse($response);
}
}
}
Expand Down

0 comments on commit fc7bf62

Please sign in to comment.