summaryrefslogtreecommitdiffstats
path: root/cholerab/knut/index.js
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2011-08-30 11:25:00 +0200
committermakefu <github@syntax-fehler.de>2011-08-30 11:25:00 +0200
commitbbf2bc45f02e8795b8cda6dde262226cd658bfd4 (patch)
tree4089d3fd6ac40c0d5a91dae46a444d4c62139a22 /cholerab/knut/index.js
parentcd4f8b3394e02bcb7d86d53d1b98b4b4b868b78b (diff)
parentb1f0a73e5810aed4fd78aad2bb55a8a67f76df5d (diff)
Merge branch 'master' of github.com:krebscode/painload into punani_files
Conflicts: .gitmodules
Diffstat (limited to 'cholerab/knut/index.js')
-rwxr-xr-xcholerab/knut/index.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/cholerab/knut/index.js b/cholerab/knut/index.js
index 9c536006..b8951f1d 100755
--- a/cholerab/knut/index.js
+++ b/cholerab/knut/index.js
@@ -12,6 +12,16 @@ var spawn = require('child_process').spawn;
var plugs = process.argv.slice(2);
+if (plugs.length === 0) {
+ console.error('Error 1: You are made of stupid!'
+ + '\nPro-Tip: '
+ + require('path').basename(process.argv[1]) + ' PLUG'
+ + ' # PLUG ∈ {'
+ + require('fs').readdirSync(__dirname + '/plugs').join(',')
+ + '}^n, n ≥ 1');
+ process.exit(23);
+};
+
http.createServer(function (req, res) {
return slurp(req, function (data) {
try {