Skip to content

Commit

Permalink
No longer use hardcoded string for name of SQSError.
Browse files Browse the repository at this point in the history
  • Loading branch information
astrosam committed May 9, 2016
1 parent 84a3490 commit 1ef3fb9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Consumer.prototype._processMessage = function (message, cb) {
}
], function (err) {
if (err) {
if (err.name === 'SQSError') {
if (err.name === SQSError.name) {
consumer.emit('error', err);
} else {
consumer.emit('processing_error', err);
Expand Down

0 comments on commit 1ef3fb9

Please sign in to comment.