Permalink
Browse files

Minor text and example changes

  • Loading branch information...
gomfunkel committed Aug 9, 2012
1 parent 5287ea6 commit 49bc28a1007605b84d42ab5021c6087dcba56be8
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
@@ -15,7 +15,7 @@ Further information on the MailChimp API and its features is available at [http:
## Attention: API changes in 0.9.0
-Version 0.9.0 of _node-mailchimp_ changed the API so that most of your existing applications developed with earlier versions will most probably break. The reason for the changes is being more compliant to node.js code conventions regarding error handling. Please make sure that your applications are refactored to use the new API when updating.
+Version 0.9.0 of _node-mailchimp_ changed the API so that your existing applications developed with earlier versions will most probably break. The reason for the changes is being more compliant to node.js code conventions regarding error handling. Please make sure that your applications are refactored to use the new API when updating.
The two important changes are:
@@ -134,7 +134,7 @@ var MailChimpWebhook = require('mailchimp').MailChimpWebhook;
var webhook = new MailChimpWebhook();
webhook.on('error', function (message) {
- console.log('Error: '+message);
+ console.log(error.message);
});
webhook.on('subscribe', function (data, meta) {
@@ -211,7 +211,7 @@ var oauth = new MailChimpOAuth(options);
console.log(oauth.getAuthorizeUri()); // The MailChimp login URI the user needs to be sent to
oauth.on('error', function (message) {
- console.log('Error: '+message);
+ console.log(error.message);
});
oauth.on('authed', function (apiKey) {

0 comments on commit 49bc28a

Please sign in to comment.