diff --git a/src/git.js b/src/git.js index 24e418ffd..c641df763 100644 --- a/src/git.js +++ b/src/git.js @@ -31,7 +31,7 @@ async function capture(cmd, args) { return res; } catch (err) { - const msg = `Command '${cmd}' failed with args '${args.join(' ')}': ${err}`; + const msg = `Command '${cmd}' failed with args '${args.join(' ')}': ${res.stderr}: ${err}`; core.debug(`@actions/exec.exec() threw an error: ${msg}`); throw new Error(msg); }