From 1d323f1725327b2c02a2458acbf7c019df597fe3 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 22 Jul 2022 14:23:18 +0200 Subject: [PATCH] Ignore warnings on stderr if stdout is not empty --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6396a46..e35802d 100644 --- a/index.js +++ b/index.js @@ -275,7 +275,7 @@ nodeSlicer.render = function (options, callback) { shellCommand, function (error, stdout, stderr) { - if (stderr){ + if (stderr && !stdout){ return callback({ message: stderr }) }