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:
zotlabs 2018-02-22 21:54:28 -08:00
parent 5456ee7f65
commit 8f95b8a824

View file

@ -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);
}