summaryrefslogtreecommitdiffstats
path: root/controller/jsonhttperror.php
diff options
context:
space:
mode:
Diffstat (limited to 'controller/jsonhttperror.php')
-rw-r--r--controller/jsonhttperror.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/controller/jsonhttperror.php b/controller/jsonhttperror.php
index a271878a8..722019ae1 100644
--- a/controller/jsonhttperror.php
+++ b/controller/jsonhttperror.php
@@ -17,15 +17,15 @@ use \OCP\AppFramework\Http\JSONResponse;
trait JSONHttpError {
- /**
- * @param \Exception $exception the message that is returned taken from the
- * exception
- * @param int $code the http error code
- * @return \OCP\AppFramework\Http\JSONResponse
- */
- public function error(\Exception $exception, $code) {
- return new JSONResponse(['message' => $exception->getMessage()], $code);
- }
+ /**
+ * @param \Exception $exception the message that is returned taken from the
+ * exception
+ * @param int $code the http error code
+ * @return \OCP\AppFramework\Http\JSONResponse
+ */
+ public function error(\Exception $exception, $code) {
+ return new JSONResponse(['message' => $exception->getMessage()], $code);
+ }
} \ No newline at end of file