Permalink
Browse files

Don't throw error, let callback handle it

  • Loading branch information...
1 parent a690135 commit 50a645e1bcd04ff631daf17655c740a473471eed @razola razola committed Oct 26, 2011
Showing with 3 additions and 2 deletions.
  1. +3 −2 main.js
View
@@ -211,8 +211,9 @@ var AmazonSES = (function() {
call({
query: buildMessage(message)
, callback: function(err, data) {
- if (err) throw err;
- if (callback) callback(data);
+ if (callback) callback(err, data);
+ //if (err) throw err;
+ //if (callback) callback(data);
}
});
}

0 comments on commit 50a645e

Please sign in to comment.