diff options
author | zotlabs <mike@macgirvin.com> | 2018-02-22 21:54:28 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-02-22 21:54:28 -0800 |
commit | 8f95b8a824351d9bfd0542ed90c19d8c4e26239c (patch) | |
tree | c5883c644e9175648d63c6152be76661fb030b8a /Zotlabs/Module/Cloud.php | |
parent | 5456ee7f655b854c37cddf0479f0d8757802ca86 (diff) | |
download | volse-hubzilla-8f95b8a824351d9bfd0542ed90c19d8c4e26239c.tar.gz volse-hubzilla-8f95b8a824351d9bfd0542ed90c19d8c4e26239c.tar.bz2 volse-hubzilla-8f95b8a824351d9bfd0542ed90c19d8c4e26239c.zip |
handle error logging in on cloud page (post method not implemented), politely ask viewer to refresh the page rather than alert 'unknown error'.
Diffstat (limited to 'Zotlabs/Module/Cloud.php')
-rw-r--r-- | Zotlabs/Module/Cloud.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Zotlabs/Module/Cloud.php b/Zotlabs/Module/Cloud.php index 2215507ca..8b5476efc 100644 --- a/Zotlabs/Module/Cloud.php +++ b/Zotlabs/Module/Cloud.php @@ -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); } |