From 2ff250ecc7d54130a8d5a5c7b3e6823de0ba10d9 Mon Sep 17 00:00:00 2001 From: TheEssem Date: Sun, 5 Jan 2020 18:01:42 -0600 Subject: [PATCH] Return meme stderr as string --- commands/meme.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/meme.js b/commands/meme.js index 4c1050f..c2be71d 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; + if (error) throw error.toString(); }); child.stdout.once("close", () => { const data = Buffer.concat(chunks);