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);
|
\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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user