mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 10:14:04 +00:00
throw correct exception when $originalOnFail() is null
This commit is contained in:
parent
8fb3eb0abd
commit
17fecf29a1
2 changed files with 17 additions and 1 deletions
|
|
@ -30,7 +30,11 @@ class UniversalRoutes implements Feature
|
|||
return $next($request);
|
||||
}
|
||||
|
||||
return $originalOnFail($exception, $request, $next);
|
||||
if ($originalOnFail) {
|
||||
return $originalOnFail($exception, $request, $next);
|
||||
}
|
||||
|
||||
throw $exception;
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue