laravel-mailchimp
laravel-mailchimp copied to clipboard
Catch error
Hi, I tried to catch like this but its not working:
catch(Mailchimp_Error $e)
{
return Response::json(array('error' => true, 'message' => $e->getMessage()), 400);
}
@fmendoza Can you give me some more details? What is the code inside the try block. What input are you giving where you expect the error?
I'm also interested to see how try/catch would work. please include an example in README.