Skip to content
This repository has been archived by the owner on Sep 10, 2021. It is now read-only.

Commit

Permalink
Update dependency versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Snape committed May 12, 2015
1 parent 220ea63 commit f56d743
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ _Server component of the Midas Platform_
[![Code Climate](https://img.shields.io/codeclimate/github/midasplatform/Midas.svg)](https://codeclimate.com/github/midasplatform/Midas)
[![Packagist Version](https://img.shields.io/packagist/v/midas-platform/midas-server.svg)](https://packagist.org/packages/midas-platform/midas-server)
[![Packagist License](https://img.shields.io/packagist/l/midas-platform/midas-server.svg)](https://packagist.org/packages/midas-platform/midas-server)
[![PHP Dependencies](https://img.shields.io/versioneye/d/midas-platform/midas-server.svg)](https://www.versioneye.com/user/projects/54fdf4ad4a10649b1b000002)


## Overview ##

Expand Down
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,25 @@
"ext-json": "*",
"erusev/parsedown-extra": "~0.7",
"francodacosta/phmagick": "0.4.*@dev",
"intervention/image": "~2.1",
"intervention/image": "~2.2",
"ircmaxell/random-lib": "~1.1",
"leafo/scssphp": "~0.1",
"maennchen/zipstream-php": "~0.3",
"moontoast/math": "~1.1",
"ramsey/uuid": "~2.8",
"reprovinci/solr-php-client": "~1.0",
"rhumsaa/uuid": "~2.8",
"sendgrid/sendgrid": "~2.2",
"sendgrid/sendgrid": "~3.1",
"zendframework/zendframework1": "~1.12"
},
"require-dev": {
"ext-curl": "*",
"ext-xdebug": "*",
"fabpot/php-cs-fixer": "~1.5",
"fabpot/php-cs-fixer": "~1.8",
"jokkedk/zfdebug": "~1.6",
"phpcheckstyle/phpcheckstyle": "V0.14.1",
"phpunit/dbunit": "1.3.*@dev",
"phpunit/dbunit": "~1.3",
"phpunit/phpcov": "~2.0",
"phpunit/phpunit": "~4.5",
"phpunit/phpunit": "~4.6",
"satooshi/php-coveralls": "~0.6",
"sensiolabs/security-checker": "~2.0",
"symfony/console": "~2.6"
Expand Down
8 changes: 4 additions & 4 deletions library/Midas/Service/SendGrid/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,10 @@ public function sendMail(Midas_Mail $mail)
$email->setText($mail->getBodyText(true));
$email->setTos($mail->getTo());

$response = $this->_client->send($email);

if ($response->code !== 200) {
throw new Midas_Service_SendGrid_Exception('Could not send mail: '.$response->raw_body);
try {
$this->_client->send($email);
} catch(\SendGrid\Exception $exception) {
throw new Midas_Service_SendGrid_Exception('Could not send mail');
}
}
}

0 comments on commit f56d743

Please sign in to comment.