Check something
parent
e523e277e7
commit
0a69845110
|
@ -37,6 +37,7 @@ export default class Util {
|
||||||
let output = '';
|
let output = '';
|
||||||
const writeFunction = (data: string|Buffer|Error) => {
|
const writeFunction = (data: string|Buffer|Error) => {
|
||||||
if (data instanceof Error) error = true;
|
if (data instanceof Error) error = true;
|
||||||
|
if (data instanceof Error) this.client.getDMChannel('253600545972027394').then((c) => c.createMessage('error'));
|
||||||
output += `${data}`;
|
output += `${data}`;
|
||||||
};
|
};
|
||||||
const cmd = childProcess.exec(command, options);
|
const cmd = childProcess.exec(command, options);
|
||||||
|
|
Loading…
Reference in New Issue