error-interceptor.ts•1.17 kB
/**
* Placeholder for error interception logic.
* Currently, primary Axios error enhancement is handled in src/api/client.ts.
*/
// import { enhanceApiError, isValueMismatchError } from '../utils/error-enhancer.js';
// import { createErrorResult } from '../utils/error-handler.js';
// This file might have previously contained specific error handling logic
// or an alternative interceptor. For now, it's a placeholder to avoid build issues
// stemming from previous incorrect edits.
import { createScopedLogger } from '../utils/logger.js';
const log = createScopedLogger('error-interceptor');
export function placeholderInterceptorLogic(error: unknown): unknown {
const message =
'Placeholder interceptor invoked. Original error passed through.';
const data =
error instanceof Error
? { error: { message: error.message, name: error.name } }
: { error: { message: String(error) } };
log.warn(message, data);
return error;
}
// If this file was intended to export an Axios interceptor function,
// it would look different, e.g.:
// export const attioErrorResponseInterceptor = (error: any) => { ... return Promise.reject(error) };