mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:55:19 +00:00
handle error logging in on cloud page (post method not implemented), politely ask viewer to refresh the page rather than alert 'unknown error'.
This commit is contained in:
parent
5456ee7f65
commit
8f95b8a824
1 changed files with 3 additions and 0 deletions
|
@ -110,6 +110,9 @@ class Cloud extends \Zotlabs\Web\Controller {
|
|||
elseif($err instanceof \Sabre\DAV\Exception\Forbidden) {
|
||||
notice( t('Permission denied') . EOL);
|
||||
}
|
||||
elseif($err instanceof \Sabre\DAV\Exception\NotImplemented) {
|
||||
notice( t('Please refresh page') . EOL);
|
||||
}
|
||||
else {
|
||||
notice( t('Unknown error') . EOL);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue