summaryrefslogtreecommitdiff
path: root/lib/internal/queue.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/queue.js')
-rw-r--r--lib/internal/queue.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/queue.js b/lib/internal/queue.js
index 575497b..a421d2e 100644
--- a/lib/internal/queue.js
+++ b/lib/internal/queue.js
@@ -9,7 +9,7 @@ export default function queue(worker, concurrency, payload) {
concurrency = 1;
}
else if(concurrency === 0) {
- throw new Error('Concurrency must not be zero');
+ throw new RangeError('Concurrency must not be zero');
}
var _worker = wrapAsync(worker);