mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 04:55:48 +03:00
Make sure network error is shown in UI instead of generic error
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
ac1b11708f
commit
19cf69ccd3
1 changed files with 1 additions and 0 deletions
|
@ -99,6 +99,7 @@ class ShareTableViewDataSource: NSObject, NSTableViewDataSource, NSTableViewDele
|
||||||
account = convertedAccount
|
account = convertedAccount
|
||||||
await sharesTableView?.deselectAll(self)
|
await sharesTableView?.deselectAll(self)
|
||||||
capabilities = await fetchCapabilities()
|
capabilities = await fetchCapabilities()
|
||||||
|
guard capabilities != nil else { return }
|
||||||
guard capabilities?.filesSharing?.apiEnabled == true else {
|
guard capabilities?.filesSharing?.apiEnabled == true else {
|
||||||
presentError("Server does not support shares.")
|
presentError("Server does not support shares.")
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue