From 77ca68f39bc2b9482572ffa72d7eecc841569366 Mon Sep 17 00:00:00 2001 From: TheEssem Date: Sun, 5 Jan 2020 18:02:24 -0600 Subject: [PATCH] Turn meme stderr string into an error --- commands/meme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/meme.js b/commands/meme.js index c2be71d..399f822 100644 --- a/commands/meme.js +++ b/commands/meme.js @@ -17,7 +17,7 @@ exports.run = async (message, args) => { if (error) throw error; }); child.stderr.once("data", (error) => { - if (error) throw error.toString(); + if (error) throw new Error(error.toString()); }); child.stdout.once("close", () => { const data = Buffer.concat(chunks);