]> source.dussan.org Git - nextcloud-server.git/commit
Fix invalid usage of \Exception::getResult 21432/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 16 Jun 2020 13:37:20 +0000 (15:37 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Tue, 16 Jun 2020 13:37:20 +0000 (15:37 +0200)
commit94a95ffceb0ec16b333d13a0742a5e0c2c1ed93e
treec326d780722cd7b7ba330dd0a796b85d2f24a569
parent5e52c110bb149f35ec46472a4834a5f9a25c4892
Fix invalid usage of \Exception::getResult

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>
ocs/v1.php