mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Use printAndExit with error (#4086)
This commit is contained in:
parent
9711f74db7
commit
812db745f8
|
@ -44,6 +44,5 @@ if (!existsSync(join(dir, 'pages'))) {
|
|||
|
||||
build(dir)
|
||||
.catch((err) => {
|
||||
console.error(err)
|
||||
process.exit(1)
|
||||
printAndExit(err)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue