Return meme stderr as string
This commit is contained in:
parent
56034a6849
commit
2ff250ecc7
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ exports.run = async (message, args) => {
|
||||||
if (error) throw error;
|
if (error) throw error;
|
||||||
});
|
});
|
||||||
child.stderr.once("data", (error) => {
|
child.stderr.once("data", (error) => {
|
||||||
if (error) throw error;
|
if (error) throw error.toString();
|
||||||
});
|
});
|
||||||
child.stdout.once("close", () => {
|
child.stdout.once("close", () => {
|
||||||
const data = Buffer.concat(chunks);
|
const data = Buffer.concat(chunks);
|
||||||
|
|
Loading…
Reference in a new issue