mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
- Added isENOENT function to routes/common.ts for improved error handling. - Re-exported isENOENT alongside existing utilities for better accessibility. This change streamlines error management in file system operations.
14 lines
380 B
TypeScript
14 lines
380 B
TypeScript
/**
|
|
* Common utilities for fs routes
|
|
*/
|
|
|
|
import { createLogger } from '@automaker/utils';
|
|
import { getErrorMessage as getErrorMessageShared, createLogError, isENOENT } from '../common.js';
|
|
|
|
const logger = createLogger('FS');
|
|
|
|
// Re-export shared utilities
|
|
export { getErrorMessageShared as getErrorMessage };
|
|
export { isENOENT };
|
|
export const logError = createLogError(logger);
|