mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-13 01:10:27 -07:00
Apply auto-build changes
This commit is contained in:
parent
6dbbfd6c5b
commit
5f953a06c7
2 changed files with 129 additions and 3 deletions
|
|
@ -289,7 +289,8 @@ var CLI = /** @class */ (function () {
|
|||
thread.on('error', function () {
|
||||
// catches execution error (bad file)
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(1, "Error executing binary: ".concat(_this.config.cli));
|
||||
console.log("Error executing binary: ".concat(_this.config.cli));
|
||||
_this.config.jobLog("Error executing binary: ".concat(_this.config.cli));
|
||||
resolve(1);
|
||||
});
|
||||
// thread.stdout.pipe(process.stdout);
|
||||
|
|
@ -297,7 +298,8 @@ var CLI = /** @class */ (function () {
|
|||
thread.on('close', function (code) {
|
||||
if (code !== 0) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(code, 'CLI error');
|
||||
console.log("CLI error code: ".concat(code));
|
||||
_this.config.jobLog("CLI error code: ".concat(code));
|
||||
}
|
||||
resolve(code);
|
||||
});
|
||||
|
|
@ -305,7 +307,8 @@ var CLI = /** @class */ (function () {
|
|||
catch (err) {
|
||||
// catches execution error (no file)
|
||||
// eslint-disable-next-line no-console
|
||||
console.log(1, "Error executing binary: ".concat(_this.config.cli));
|
||||
console.log("Error executing binary: ".concat(_this.config.cli, ": ").concat(err));
|
||||
_this.config.jobLog("Error executing binary: ".concat(_this.config.cli, ": ").concat(err));
|
||||
resolve(1);
|
||||
}
|
||||
})];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue