summaryrefslogtreecommitdiffstats
path: root/cholerab/knut/index.js
diff options
context:
space:
mode:
authorEUcancER <root@euer.krebsco.de>2011-08-31 12:52:15 +0200
committerEUcancER <root@euer.krebsco.de>2011-08-31 12:52:15 +0200
commita2e4ac21444fd9af436039ba921e809cfca59ea2 (patch)
treee12c692527bc9b2b373cf0a4956f0ff458045cd7 /cholerab/knut/index.js
parentefe72ae286caa4ecf88edcbcb619fb0ceb886ca8 (diff)
parentcf46dbc53b36772fb0461b9451337c118e705c55 (diff)
Gigantor Merge!
Conflicts: cholerab/news/Candidate - add Ante scriptum cholerab/shirts/bestellliste - merged as theirs oncology/dpfhack_display - now a submodule add bug-fixing for adv_graphgen, as well as a Makefile
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 {