-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: keep previous exception when wrapping dav exceptions #46685
Conversation
} catch (InvalidPathException $ex) { | ||
throw new InvalidPath($ex->getMessage()); | ||
throw new InvalidPath($ex->getMessage(), $ex->getCode(), $ex); |
Check failure
Code scanning / Psalm
InvalidArgument Error
} catch (ForbiddenException $e) { | ||
throw new \Sabre\DAV\Exception\Forbidden(); | ||
throw new \Sabre\DAV\Exception\Forbidden($ex->getMessage(), $ex->getRetry(), $ex); |
Check failure
Code scanning / Psalm
UndefinedVariable Error
} catch (ForbiddenException $e) { | ||
throw new \Sabre\DAV\Exception\Forbidden(); | ||
throw new \Sabre\DAV\Exception\Forbidden($ex->getMessage(), $ex->getRetry(), $ex); |
Check failure
Code scanning / Psalm
UndefinedVariable Error
} catch (ForbiddenException $e) { | ||
throw new \Sabre\DAV\Exception\Forbidden(); | ||
throw new \Sabre\DAV\Exception\Forbidden($ex->getMessage(), $ex->getRetry(), $ex); |
Check failure
Code scanning / Psalm
UndefinedVariable Error
Signed-off-by: Robin Appelman <robin@icewind.nl>
d16ad2a
to
d5a2a4a
Compare
No need to throw away valuable context