use json instead of raw error msg output

This commit is contained in:
Georg Ehrke 2014-02-03 02:26:29 +01:00
parent 4b1ce73f10
commit 55556bab75

View File

@ -109,8 +109,8 @@ try{
\OCP\JSON::success($response); \OCP\JSON::success($response);
} catch (BadRequestException $e){ } catch (BadRequestException $e){
header('HTTP/1.1 400: BAD REQUEST'); header('HTTP/1.1 400: BAD REQUEST');
print(""); \OCP\JSON::error( array(
print($e->getBody()); 'message' => $e->getBody(),
print(""); ));
} }
exit(); exit();