MCPcopy Index your code
hub / github.com/awesome-android-root/awesome-android-root / handleError

Function handleError

scripts/build-docs.js:17–20  ·  view source on GitHub ↗
(msg)

Source from the content-addressed store, hash-verified

15const logWarn = (msg) => console.log(`${COLORS.YELLOW}⚠ ${msg}${COLORS.NC}`);
16const logError = (msg) => console.error(`${COLORS.RED}✗ ${msg}${COLORS.NC}`);
17const handleError = (msg) => {
18 logError(msg);
19 process.exit(1);
20};
21
22console.log(`${COLORS.GREEN}Starting build-docs process...${COLORS.NC}`);
23

Callers 3

build-docs.jsFile · 0.85
addSearchComponentFunction · 0.85
validateBuildFunction · 0.85

Calls 1

logErrorFunction · 0.85

Tested by

no test coverage detected