summaryrefslogtreecommitdiffstats
path: root/controller/jsonhttperror.php
diff options
context:
space:
mode:
Diffstat (limited to 'controller/jsonhttperror.php')
-rw-r--r--controller/jsonhttperror.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/jsonhttperror.php b/controller/jsonhttperror.php
index dca0cb2f3..b841ba5b5 100644
--- a/controller/jsonhttperror.php
+++ b/controller/jsonhttperror.php
@@ -23,7 +23,7 @@ trait JSONHttpError {
* @param int the http error code
* @return \OCP\AppFramework\Http\JSONResponse
*/
- protected function error($exception, $code) {
+ public function error($exception, $code) {
return new JSONResponse(
array('message' => $exception->getMessage()),
$code