@@ -32,7 +32,6 @@ |
||
| 32 | 32 | use OCA\FederatedFileSharing\AddressHandler; |
| 33 | 33 | use OCA\FederatedFileSharing\FederatedShareProvider; |
| 34 | 34 | use OCA\FederatedFileSharing\Notifications; |
| 35 | -use OCA\FederatedFileSharing\OCM\CloudFederationProvider; |
|
| 36 | 35 | use OCA\FederatedFileSharing\TokenHandler; |
| 37 | 36 | use OCA\ShareByMail\Settings\SettingsManager; |
| 38 | 37 | use OCA\ShareByMail\ShareByMailProvider; |
@@ -247,8 +247,7 @@ |
||
| 247 | 247 | return new JSONResponse($e->getReturnMessage(), Http::STATUS_BAD_REQUEST); |
| 248 | 248 | } catch (AuthenticationFailedException $e) { |
| 249 | 249 | return new JSONResponse(["message" => "RESOURCE_NOT_FOUND"], Http::STATUS_FORBIDDEN); |
| 250 | - } |
|
| 251 | - catch (\Exception $e) { |
|
| 250 | + } catch (\Exception $e) { |
|
| 252 | 251 | return new JSONResponse( |
| 253 | 252 | ['message' => 'Internal error at ' . $this->urlGenerator->getBaseUrl()], |
| 254 | 253 | Http::STATUS_BAD_REQUEST |