summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-10-25 19:05:28 +0100
committerLukas Reschke <lukas@owncloud.com>2015-10-25 19:05:28 +0100
commit6897cbebc05fb4daa6b81daaac9b181120fcf529 (patch)
tree640af5bc016a29139087f243a9816eb98e115b88
parent2e0952b08149d1fd351f244e01524de22ff5fae3 (diff)
downloadnextcloud-server-6897cbebc05fb4daa6b81daaac9b181120fcf529.tar.gz
nextcloud-server-6897cbebc05fb4daa6b81daaac9b181120fcf529.zip
Do not print exception message
-rw-r--r--core/avatar/controller.php6
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.") ));
}
}
}