sqs-consumer
Advanced tools
Comparing version 3.1.2 to 3.1.3
@@ -17,6 +17,7 @@ 'use strict'; | ||
function SQSError(message) { | ||
this.name = 'SQSError'; | ||
Error.captureStackTrace(this, this.constructor); | ||
this.name = this.constructor.name; | ||
this.message = (message || ''); | ||
} | ||
SQSError.prototype = Error.prototype; | ||
util.inherits(SQSError, Error); | ||
@@ -155,3 +156,3 @@ function validate(options) { | ||
if (err) { | ||
if (err.name === 'SQSError') { | ||
if (err.name === SQSError.name) { | ||
consumer.emit('error', err); | ||
@@ -158,0 +159,0 @@ } else { |
{ | ||
"name": "sqs-consumer", | ||
"version": "3.1.2", | ||
"version": "3.1.3", | ||
"description": "Build SQS-based Node applications without the boilerplate", | ||
@@ -32,3 +32,3 @@ "main": "index.js", | ||
"mocha": "^2.0.1", | ||
"codeclimate-test-reporter": "0.3.0", | ||
"codeclimate-test-reporter": "0.3.1", | ||
"sinon": "^1.10.3" | ||
@@ -35,0 +35,0 @@ }, |
@@ -64,5 +64,13 @@ # sqs-consumer | ||
// ... | ||
done(); | ||
}, | ||
sqs: new AWS.SQS() | ||
}); | ||
app.on('error', function (err) { | ||
console.log(err.message); | ||
}); | ||
app.start(); | ||
``` | ||
@@ -69,0 +77,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21831
447
114