Fail action when script fails.

This commit is contained in:
Yang Chen
2019-11-09 03:34:10 +11:00
parent a6ea5be5bb
commit 83dda62a70
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ function run() {
yield exec.exec(`${script}`); yield exec.exec(`${script}`);
} }
catch (error) { catch (error) {
console.error(error.message); core.setFailed(error.message);
} }
// finally kill the emulator // finally kill the emulator
yield emulator_manager_1.killEmulator(); yield emulator_manager_1.killEmulator();
+1 -1
View File
@@ -56,7 +56,7 @@ async function run() {
try { try {
await exec.exec(`${script}`); await exec.exec(`${script}`);
} catch (error) { } catch (error) {
console.error(error.message); core.setFailed(error.message);
} }
// finally kill the emulator // finally kill the emulator