use json instead of raw error msg output
This commit is contained in:
parent
4b1ce73f10
commit
55556bab75
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user