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);
} catch (BadRequestException $e){
header('HTTP/1.1 400: BAD REQUEST');
print("");
print($e->getBody());
print("");
\OCP\JSON::error( array(
'message' => $e->getBody(),
));
}
exit();