diff options
Diffstat (limited to 'core/avatar/controller.php')
-rw-r--r-- | core/avatar/controller.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/avatar/controller.php b/core/avatar/controller.php index ca055f5fd75..6076084d880 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.") )); } } } |