1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2025-05-02 20:37:08 +01:00

Remove spawn-watch.

No longer necessary.
This commit is contained in:
hacksalot
2016-01-09 05:29:45 -05:00
parent d878270bc6
commit 9466a8c0dd
4 changed files with 71 additions and 26 deletions

View File

@ -1,22 +0,0 @@
/**
@module spawn-watch.js
*/
(function() {
// Catch various out-of-band child process errors such as ENOENT for PDFs
// http://stackoverflow.com/q/27688804
var SpawnWatcher = module.exports = function() {
var childProcess = require("child_process");
var oldSpawn = childProcess.spawn;
childProcess.spawn = function() {
return oldSpawn.apply(this, arguments)
.on('error', function(err) {
require('./error-handler').err( err, false );
});
};
}();
//SpawnWatcher();
}());

View File

@ -10,8 +10,7 @@
var SPAWNW = require('./core/spawn-watch')
, HMR = require( './hackmyapi')
var HMR = require( './hackmyapi')
, PKG = require('../package.json')
, FS = require('fs')
, EXTEND = require('./utils/extend')