MCPcopy
hub / github.com/vercel/next.js / exit

Function exit

packages/create-next-app/index.ts:809–823  ·  view source on GitHub ↗
(reason: { command?: string })

Source from the content-addressed store, hash-verified

807}
808
809async function exit(reason: { command?: string }) {
810 console.log()
811 console.log('Aborting installation.')
812 if (reason.command) {
813 console.log(` ${cyan(reason.command)} has failed.`)
814 } else {
815 console.log(
816 red('Unexpected error. Please report it as a bug:') + '\n',
817 reason
818 )
819 }
820 console.log()
821 await notifyUpdate()
822 process.exit(1)
823}
824
825run().then(notifyUpdate).catch(exit)

Callers

nothing calls this directly

Calls 4

redFunction · 0.85
notifyUpdateFunction · 0.85
logMethod · 0.45
exitMethod · 0.45

Tested by

no test coverage detected