From 99a15ff138bfdba163f1a0d32461dcba5c9c831b Mon Sep 17 00:00:00 2001 From: Edward Ruchevits Date: Thu, 28 Sep 2017 12:45:05 +0100 Subject: [PATCH] Promise is rejected with error, why force console output? --- src/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index addec8e..d3a5131 100644 --- a/src/index.ts +++ b/src/index.ts @@ -179,7 +179,6 @@ export class Docker { exec(execCommand, execOptions, function(error, stdout, stderr) { if (error) { const message = `error: '${error}' stdout = '${stdout}' stderr = '${stderr}'`; - console.error(message); reject(message); } //need to wrap stdout in object