Add trace to exception handler.

This commit is contained in:
kiswa 2015-01-22 14:58:11 -05:00
parent 4bf94b55cf
commit 254947bb37

View File

@ -24,11 +24,12 @@ function exceptionHandler($exception) {
$jsonResponse->message = 'API Error.';
$jsonResponse->data = $exception->getMessage();
$jsonResponse->trace = $exception->getTrace();
echo $jsonResponse->asJson();
};
set_exception_handler('exceptionHandler');
R::setup('sqlite:taskboard.db');
R::setup('sqlite:../taskboard.db');
createInitialUser();
$app->notFound(function() use ($app, $jsonResponse) {