Skip to content
Snippets Groups Projects
Unverified Commit ca74a54d authored by Morris Jobke's avatar Morris Jobke
Browse files

Remove "DEBUG OUTPUT:" from failing OCS API requests


Signed-off-by: default avatarMorris Jobke <hey@morrisjobke.de>
parent 9386b07e
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,7 @@ try { ...@@ -81,7 +81,7 @@ try {
$format = \OC::$server->getRequest()->getParam('format', 'xml'); $format = \OC::$server->getRequest()->getParam('format', 'xml');
$txt='Invalid query, please check the syntax. API specifications are here:' $txt='Invalid query, please check the syntax. API specifications are here:'
.' http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:'."\n"; .' http://www.freedesktop.org/wiki/Specifications/open-collaboration-services.'."\n";
OC_API::respond(new \OC\OCS\Result(null, \OCP\API::RESPOND_NOT_FOUND, $txt), $format); OC_API::respond(new \OC\OCS\Result(null, \OCP\API::RESPOND_NOT_FOUND, $txt), $format);
} catch (MethodNotAllowedException $e) { } catch (MethodNotAllowedException $e) {
OC_API::setContentType(); OC_API::setContentType();
...@@ -96,7 +96,7 @@ try { ...@@ -96,7 +96,7 @@ try {
$format = \OC::$server->getRequest()->getParam('format', 'xml'); $format = \OC::$server->getRequest()->getParam('format', 'xml');
$txt='Invalid query, please check the syntax. API specifications are here:' $txt='Invalid query, please check the syntax. API specifications are here:'
.' http://www.freedesktop.org/wiki/Specifications/open-collaboration-services. DEBUG OUTPUT:'."\n"; .' http://www.freedesktop.org/wiki/Specifications/open-collaboration-services.'."\n";
OC_API::respond(new \OC\OCS\Result(null, \OCP\API::RESPOND_NOT_FOUND, $txt), $format); OC_API::respond(new \OC\OCS\Result(null, \OCP\API::RESPOND_NOT_FOUND, $txt), $format);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment