|
@@ -53,6 +53,10 @@ class Handler extends ExceptionHandler
|
|
|
return response()->json([
|
|
|
'message' => str_replace('App\\', '', $exception->getModel()).' not found'], 404);
|
|
|
}
|
|
|
+ if ($exception instanceof \Symfony\Component\HttpKernel\Exception\NotFoundHttpException) {
|
|
|
+ return response()->json([
|
|
|
+ 'message' => 'not found'], 404);
|
|
|
+ }
|
|
|
if ($exception instanceof InvalidOtpParameterException) {
|
|
|
return response()->json([
|
|
|
'message' => 'invalid OTP parameters',
|