Turn meme stderr string into an error
This commit is contained in:
parent
2ff250ecc7
commit
77ca68f39b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue