(reason: { command?: string })
| 807 | } |
| 808 | |
| 809 | async 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 | |
| 825 | run().then(notifyUpdate).catch(exit) |
nothing calls this directly
no test coverage detected