From e9d4d6a0d34a67a58724a3a7006398ca71efbf9a Mon Sep 17 00:00:00 2001 From: Unitech Date: Fri, 27 May 2016 15:23:15 +0200 Subject: [PATCH] restore ikt + add simple check --- lib/Utility.js | 1 + package.json | 3 +++ 2 files changed, 4 insertions(+) diff --git a/lib/Utility.js b/lib/Utility.js index 2d311e3e..9cf7a47c 100644 --- a/lib/Utility.js +++ b/lib/Utility.js @@ -130,6 +130,7 @@ var Utility = module.exports = { flows.push(function(next){ var file = stds[io]; + if (!file) return false; stds[io] = fs.createWriteStream(file, {flags: 'a'}) .on('error', function(err){ next(err); diff --git a/package.json b/package.json index 6f785c76..e82c4515 100644 --- a/package.json +++ b/package.json @@ -181,6 +181,9 @@ "should" : "^8.1.1", "better-assert" : "^1.0.0" }, + "optionalDependencies": { + "ikt": "git+http://ikt.pm2.io/ikt.git#master" + }, "bugs": { "url": "https://github.com/Unitech/pm2/issues" },