MCPcopy Index your code
hub / github.com/CommandCodeAI/BaseAI / handleDirectoryReadError

Function handleDirectoryReadError

packages/baseai/src/deploy/index.ts:318–336  ·  view source on GitHub ↗
({
	spinner,
	dir,
	error
}: {
	spinner: Spinner;
	dir: string;
	error: unknown;
})

Source from the content-addressed store, hash-verified

316}
317
318function handleDirectoryReadError({
319 spinner,
320 dir,
321 error
322}: {
323 spinner: Spinner;
324 dir: string;
325 error: unknown;
326}): void {
327 spinner.stop('Failed to read build directory');
328 if ((error as NodeJS.ErrnoException).code === 'ENOENT') {
329 p.log.error(`BaseAI Directory not found: ${dir}`);
330 p.log.info(
331 `Run from the root of your project where the ${color.cyan('baseai')} directory is located.`
332 );
333 } else {
334 p.log.error(`Error reading directory: ${(error as Error).message}`);
335 }
336}
337
338export function handleInvalidConfig({
339 spinner,

Callers 3

readPipesDirectoryFunction · 0.85
readToolsDirectoryFunction · 0.85
readMemoryDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected