[Pkg-owncloud-commits] [owncloud] 01/04: Do not print exception message
David Prévot
taffit at moszumanska.debian.org
Wed Oct 28 17:03:02 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.0.9RC2
in repository owncloud.
commit 6897cbebc05fb4daa6b81daaac9b181120fcf529
Author: Lukas Reschke <lukas at owncloud.com>
Date: Sun Oct 25 19:05:28 2015 +0100
Do not print exception message
---
core/avatar/controller.php | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/core/avatar/controller.php b/core/avatar/controller.php
index ca055f5..6076084 100644
--- a/core/avatar/controller.php
+++ b/core/avatar/controller.php
@@ -92,7 +92,7 @@ class Controller {
}
}
} catch (\Exception $e) {
- \OC_JSON::error(array("data" => array("message" => $e->getMessage()) ));
+ \OC_JSON::error(array("data" => array("message" => "An error occurred. Please contact your admin." )));
}
}
@@ -107,7 +107,7 @@ class Controller {
$avatar->remove();
\OC_JSON::success();
} catch (\Exception $e) {
- \OC_JSON::error(array("data" => array("message" => $e->getMessage()) ));
+ \OC_JSON::error(array("data" => array("message" => "An error occurred. Please contact your admin.") ));
}
}
@@ -158,7 +158,7 @@ class Controller {
\OC\Cache::remove('tmpavatar');
\OC_JSON::success();
} catch (\Exception $e) {
- \OC_JSON::error(array("data" => array("message" => $e->getMessage()) ));
+ \OC_JSON::error(array("data" => array("message" => "An error occurred. Please contact your admin.") ));
}
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list