MCPcopy Index your code
hub / github.com/react/react / handleError

Function handleError

scripts/release/utils.js:148–156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146};
147
148const handleError = error => {
149 logUpdate.clear();
150
151 const message = error.message.trim().replace(/\n +/g, '\n');
152 const stack = error.stack.replace(error.message, '');
153
154 console.log(theme`{error ${message}}\n\n{path ${stack}}`);
155 process.exit(1);
156};
157
158const logPromise = async (promise, text, estimate) =>
159 logger(promise, text, {estimate});

Callers 5

runFunction · 0.70
runFunction · 0.70
mainFunction · 0.70
runFunction · 0.70
runFunction · 0.70

Calls 2

exitMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected