From f302126b6d3ad861d4736b0a5486d38cfe463379 Mon Sep 17 00:00:00 2001 From: Simone Corsi Date: Sat, 16 Jan 2021 10:57:53 +0100 Subject: [PATCH] fix: better errors --- src/git.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/git.ts b/src/git.ts index db97620..641e846 100644 --- a/src/git.ts +++ b/src/git.ts @@ -31,16 +31,6 @@ export default new (class Git { exec = (command: string): Promise => { return new Promise(async (resolve, reject) => { - if (IS_TEST) { - const fullCommand = `git ${command}`; - - console.log(`Skipping "${fullCommand}" because of test env`); - - if (!fullCommand.includes('git remote set-url origin')) { - this.commandsRun.push(fullCommand); - } - return resolve('done'); - } let execOutput = ''; const options = { @@ -56,6 +46,7 @@ export default new (class Git { if (exitCode === 0) { return resolve(execOutput); } else { + core.error(`Command "git ${command}" exited with code ${exitCode}.`); return reject(`Command "git ${command}" exited with code ${exitCode}.`); } });