Return meme stderr as string

This commit is contained in:
TheEssem 2020-01-05 18:01:42 -06:00
parent 56034a6849
commit 2ff250ecc7

View file

@ -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);