Skip to content

Commit

Permalink
Fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jadb committed Jan 27, 2015
1 parent d5220cc commit 3ad7af7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Listener/ApiListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,8 @@ protected function _checkRequestMethods()
*/
public function registerExceptionHandler()
{
$config = ['exceptionRenderer' => 'Crud\Error\ExceptionRenderer'];
(new ErrorHandler($config))->register();
Configure::write('Error.exceptionRenderer', 'Crud\Error\ExceptionRenderer');
(new ErrorHandler(Configure::read('Error')))->register();
}

/**
Expand Down

0 comments on commit 3ad7af7

Please sign in to comment.