Merge pull request #648 from HaveAGitGat/runCli2

Fix error message with cliPath
make-only-subtitle-default
HaveAGitGat 2 years ago committed by GitHub
commit 04bc1281bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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…
Cancel
Save