Repaired hashFiles call so if error was thrown, it was returned to process invoker (#1678)

* hashFiles.ts added exit status on promise action

* generated layoutbin/hashfiles/index.js
This commit is contained in:
Nikola Jokic
2022-02-23 15:51:09 +01:00
committed by GitHub
parent acb46a3e1e
commit b3938017b5
2 changed files with 17 additions and 1 deletions

View File

@@ -53,3 +53,11 @@ async function run(): Promise<void> {
}
run()
.then(out => {
console.log(out)
process.exit(0)
})
.catch(err => {
console.error(err)
process.exit(1)
})

View File

@@ -1621,7 +1621,15 @@ function run() {
}
});
}
run();
run()
.then(out => {
console.log(out);
process.exit(0);
})
.catch(err => {
console.error(err);
process.exit(1);
});
/***/ }),