MCPcopy Create free account
hub / github.com/react-hook-form/react-hook-form / exit

Function exit

scripts/apiExtractor.js:123–127  ·  view source on GitHub ↗

* Prints a failure reason and exits the process with status code 1. * @param message {string}

(...message)

Source from the content-addressed store, hash-verified

121 * @param message {string}
122 */
123function exit(...message) {
124 /* eslint-disable-next-line no-console */
125 console.log(`${red('FAILURE REASON')} ${message.join(' ')}`);
126 process.exit(1);
127}

Callers 4

checkReportMatchesApiFunction · 0.85
checkNoErrorsAndWarningsFunction · 0.85
checkLineEndingsFunction · 0.85
loadExtractorConfigFunction · 0.85

Calls 1

redFunction · 0.85

Tested by

no test coverage detected