Skip to content
Snippets Groups Projects
Commit 3d220779 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Remove exception catch (never thrown), correct JSON order.

parent 0c9bf22e
No related branches found
No related tags found
No related merge requests found
......@@ -34,8 +34,8 @@ require_once(__DIR__ . '/../qfq/File.php');
$answer = array();
$answer[API_MESSAGE] = '';
$answer[API_STATUS] = API_ANSWER_STATUS_ERROR;
$answer[API_MESSAGE] = '';
try {
......@@ -51,8 +51,6 @@ try {
$answer[API_MESSAGE] = $e->formatMessage();
} catch (qfq\CodeException $e) {
$answer[API_MESSAGE] = $e->formatMessage();
} catch (qfq\DbException $e) {
$answer[API_MESSAGE] = $e->formatMessage();
} catch (\Exception $e) {
$answer[API_MESSAGE] = "Generic Exception: " . $e->getMessage();
}
......
......@@ -117,6 +117,7 @@ class AbstractException extends \Exception {
// foreach ($show as $key => $value) {
// $html .= "$key: " . Support::wrapTag("<strong>", $value) . "<br>";
// }
// $html ='Houston, we have a problem';
return $html . $htmlDebug;
}
......
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