From a624027a42a7aa2ddcc4ca3125a45258461cb734 Mon Sep 17 00:00:00 2001 From: Travis Swientek Date: Thu, 5 Sep 2013 14:53:27 -0700 Subject: [PATCH] Adjusted an exception message, tagged for next point release 1.2. --- README.md | 4 ++-- src/Mailgun/Constants/Constants.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 1239155..dd8913a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Below are examples to get you started. For additional examples, please see our official documentation at http://documentation.mailgun.com -Current Release: 1.1 +Current Release: 1.2 Installation ------------ @@ -22,7 +22,7 @@ composer and the Mailgun SDK. curl -sS https://getcomposer.org/installer | php # Add Mailgun as a dependency -php composer.phar require mailgun/mailgun-php:~1.1 +php composer.phar require mailgun/mailgun-php:~1.2 ``` For shared hosts with SSH access, you might need to run this instead (contact diff --git a/src/Mailgun/Constants/Constants.php b/src/Mailgun/Constants/Constants.php index 3165183..d18fce7 100644 --- a/src/Mailgun/Constants/Constants.php +++ b/src/Mailgun/Constants/Constants.php @@ -11,8 +11,8 @@ const DEFAULT_TIME_ZONE = "UTC"; //Common Exception Messages const EXCEPTION_INVALID_CREDENTIALS = "Your credentials are incorrect."; const EXCEPTION_GENERIC_HTTP_ERROR = "An HTTP Error has occurred! Check your network connection and try again."; -const EXCEPTION_MISSING_REQUIRED_PARAMETERS = "The parameters passed to the API were invalid. This might be a bug! Notify support@mailgun.com."; -const EXCEPTION_MISSING_ENDPOINT = "The endpoint you've tried to access does not exist. This might be a bug! Notify support@mailgun.com."; +const EXCEPTION_MISSING_REQUIRED_PARAMETERS = "The parameters passed to the API were invalid. Check your inputs!"; +const EXCEPTION_MISSING_ENDPOINT = "The endpoint you've tried to access does not exist. Check your URL."; const TOO_MANY_RECIPIENTS = "You've exceeded the maximum recipient count (1,000) on the to field with autosend disabled."; const INVALID_PARAMETER_NON_ARRAY = "The parameter you've passed in position 2 must be an array."; const INVALID_PARAMETER_ATTACHMENT = "Attachments must be passed with an \"@\" preceding the file path. Web resources not supported.";