mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-01-31 06:42:03 +00:00
refactor: enhance file system utilities with isENOENT helper
- 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.
This commit is contained in:
@@ -3,10 +3,11 @@
|
||||
*/
|
||||
|
||||
import { createLogger } from '@automaker/utils';
|
||||
import { getErrorMessage as getErrorMessageShared, createLogError } from '../common.js';
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user