1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Exit with non-zero exit code upon failure (#8901)

The `static-server` script now exits with a code of `1` upon failure.
Previously it would print the error to the console but exit with a code
of `0`, indicating success.
This commit is contained in:
Mark Stacey 2020-07-02 23:33:55 -03:00 committed by GitHub
parent af1f6a1af4
commit b10986ddaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,4 +89,7 @@ const main = async () => {
}
main()
.catch(console.error)
.catch((error) => {
console.error(error)
process.exit(1)
})