aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-22 21:54:28 -0800
committerzotlabs <mike@macgirvin.com>2018-02-22 21:54:28 -0800
commit8f95b8a824351d9bfd0542ed90c19d8c4e26239c (patch)
treec5883c644e9175648d63c6152be76661fb030b8a /Zotlabs
parent5456ee7f655b854c37cddf0479f0d8757802ca86 (diff)
downloadvolse-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')
-rw-r--r--Zotlabs/Module/Cloud.php3
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);
}