mirror of
https://github.com/jwinterm/nodejs-pool.git
synced 2026-10-17 05:21:27 +02:00
Fixing a reference.
This commit is contained in:
+2
-1
@@ -1,6 +1,7 @@
|
||||
const valid_actions = ['finder', 'stats', 'list'];
|
||||
let error = 0;
|
||||
if (!global.argv.hasOwnProperty('action') || !valid_actions.hasOwnProperty(global.argv.action)) {
|
||||
|
||||
if (!global.argv.hasOwnProperty('action') || valid_actions.indexOf(global.argv.action) === -1) {
|
||||
console.error("No action provided to block module.");
|
||||
console.error("Valid actions: " + valid_actions.join(', '));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user