diff options
author | root <root@krebs> | 2011-09-01 02:18:42 +0200 |
---|---|---|
committer | root <root@krebs> | 2011-09-01 02:18:42 +0200 |
commit | bb2a234ba756eb600fb6f562e67500d511d4ab39 (patch) | |
tree | c89b205e3ad2d20e3aa80ca525e0bbf1e01b4670 /cholerab/knut/index.js | |
parent | 8a6fd84c70618f5a435d2859b513de6de68dc0d1 (diff) | |
parent | 4fb37da707279faf92cc8a054c646336f23dfdbe (diff) |
Merge branch 'master' of github.com:/krebscode/painload
Conflicts:
.gitmodules
oncology/dpfhack_display
Diffstat (limited to 'cholerab/knut/index.js')
-rwxr-xr-x | cholerab/knut/index.js | 10 |
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: [32m' + + require('path').basename(process.argv[1]) + ' [31;1mPLUG[m' + + ' # PLUG ∈ {' + + require('fs').readdirSync(__dirname + '/plugs').join(',') + + '}^n, n ≥ 1'); + process.exit(23); +}; + http.createServer(function (req, res) { return slurp(req, function (data) { try { |