Unverified Commit e6690841 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Ensure manifests check has correct exit code on fail (#29183)

parent 37c66dcd
...@@ -8,7 +8,6 @@ This is because the framework tries to optimize when items like headers or statu ...@@ -8,7 +8,6 @@ This is because the framework tries to optimize when items like headers or statu
For this reason, accessing the object after this time is disallowed. For this reason, accessing the object after this time is disallowed.
#### Possible Ways to Fix It #### Possible Ways to Fix It
You can fix this error by moving any access of the `res` object into `getServerSideProps()` itself or any functions that run before `getServerSideProps()` returns. You can fix this error by moving any access of the `res` object into `getServerSideProps()` itself or any functions that run before `getServerSideProps()` returns.
......
...@@ -64,4 +64,7 @@ async function main() { ...@@ -64,4 +64,7 @@ async function main() {
main() main()
.then(() => console.log('success')) .then(() => console.log('success'))
.catch(console.error) .catch((err) => {
console.error(err)
process.exit(1)
})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment