mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-14 17:55:55 -07:00
Add Apprise
This commit is contained in:
parent
5eb2a9895c
commit
72e28ce23a
2 changed files with 96 additions and 3 deletions
|
|
@ -315,7 +315,8 @@ class CLI {
|
|||
thread.on('error', () => {
|
||||
// catches execution error (bad file)
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(1, `Error executing binary: ${this.config.cli}`);
|
||||
console.log(`Error executing binary: ${this.config.cli}`);
|
||||
this.config.jobLog(`Error executing binary: ${this.config.cli}`);
|
||||
resolve(1);
|
||||
});
|
||||
|
||||
|
|
@ -324,14 +325,16 @@ class CLI {
|
|||
thread.on('close', (code: number) => {
|
||||
if (code !== 0) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(code, 'CLI error');
|
||||
console.log(`CLI error code: ${code}`);
|
||||
this.config.jobLog(`CLI error code: ${code}`);
|
||||
}
|
||||
resolve(code);
|
||||
});
|
||||
} catch (err) {
|
||||
// catches execution error (no file)
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(1, `Error executing binary: ${this.config.cli}`);
|
||||
console.log(`Error executing binary: ${this.config.cli}: ${err}`);
|
||||
this.config.jobLog(`Error executing binary: ${this.config.cli}: ${err}`);
|
||||
resolve(1);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue