Skip to content

Commit

Permalink
Change event name
Browse files Browse the repository at this point in the history
  • Loading branch information
bakura10 committed Dec 27, 2013
1 parent bc59f89 commit 29dde1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ZfrMailChimp/Client/Listener/ErrorHandlerListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class ErrorHandlerListener implements EventSubscriberInterface
*/
public static function getSubscribedEvents()
{
return array('command.after_send' => 'handleError');
return array('request.exception' => 'handleError');
}

/**
Expand All @@ -153,4 +153,4 @@ public function handleError(Event $event)

throw new $this->errorMap[$errorName]($result['error'], $result['code']);
}
}
}

0 comments on commit 29dde1f

Please sign in to comment.