mirror of
https://github.com/gabehf/Tdarr_Plugins.git
synced 2026-03-17 03:06:27 -07:00
Merge pull request #648 from HaveAGitGat/runCli2
Fix error message with cliPath
This commit is contained in:
commit
04bc1281bc
2 changed files with 2 additions and 2 deletions
|
|
@ -267,7 +267,7 @@ var plugin = function (args) { return __awaiter(void 0, void 0, void 0, function
|
||||||
case 1:
|
case 1:
|
||||||
res = _a.sent();
|
res = _a.sent();
|
||||||
if (res.cliExitCode !== 0) {
|
if (res.cliExitCode !== 0) {
|
||||||
msg = "Running ".concat(userCli, " failed");
|
msg = "Running ".concat(cliPath, " failed");
|
||||||
args.jobLog(msg);
|
args.jobLog(msg);
|
||||||
throw new Error(msg);
|
throw new Error(msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -256,7 +256,7 @@ const plugin = async (args: IpluginInputArgs): Promise<IpluginOutputArgs> => {
|
||||||
const res = await cli.runCli();
|
const res = await cli.runCli();
|
||||||
|
|
||||||
if (res.cliExitCode !== 0) {
|
if (res.cliExitCode !== 0) {
|
||||||
const msg = `Running ${userCli} failed`;
|
const msg = `Running ${cliPath} failed`;
|
||||||
args.jobLog(msg);
|
args.jobLog(msg);
|
||||||
throw new Error(msg);
|
throw new Error(msg);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue