Skip to content

[stable19] Fix invalid usage of \Exception::getResult#21441

Merged
rullzer merged 1 commit intostable19from
backport/21432/stable19
Jun 17, 2020
Merged

[stable19] Fix invalid usage of \Exception::getResult#21441
rullzer merged 1 commit intostable19from
backport/21432/stable19

Conversation

@backportbot-nextcloud
Copy link

backport of #21432

Only OCS exceptions have a getResult method. Any other exception will
cause another error due to this invalid method call.

This splits the catch into a specific one for OCS and then a generic one
for anything else that can't be handled.

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
@rullzer rullzer merged commit a436df0 into stable19 Jun 17, 2020
@rullzer rullzer deleted the backport/21432/stable19 branch June 17, 2020 08:30
@rullzer rullzer mentioned this pull request Jul 6, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments