mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
fix: npx
stdin command's child process stderr logging
This commit is contained in:
parent
53e4d2d631
commit
296002e04f
@ -13,6 +13,6 @@ module.exports = class extends StdinCommand {
|
|||||||
if (!input[0]) return this.client.log.warn('Usage: npx <command> [args]');
|
if (!input[0]) return this.client.log.warn('Usage: npx <command> [args]');
|
||||||
const child = spawn('npx', input, { shell: true });
|
const child = spawn('npx', input, { shell: true });
|
||||||
for await (const data of child.stdout) this.client.log.info('npx:', data.toString());
|
for await (const data of child.stdout) this.client.log.info('npx:', data.toString());
|
||||||
for await (const data of child.stderr) this.client.warn.info('npx:', data.toString());
|
for await (const data of child.stderr) this.client.log.warn('npx:', data.toString());
|
||||||
}
|
}
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user