fixed some lint issues

This commit is contained in:
Boki 2025-06-23 22:58:42 -04:00
parent 566f5dac92
commit 969cbad7ac
14 changed files with 99 additions and 29 deletions

View file

@ -34,10 +34,11 @@ export function initializeStockConfig(serviceName?: 'dataIngestion' | 'dataPipel
}
return config;
} catch (error: any) {
} catch (error) {
const logger = getLogger('stock-config');
logger.error('Failed to initialize stock configuration:', error.message);
if (error.errors) {
const errorMessage = error instanceof Error ? error.message : String(error);
logger.error('Failed to initialize stock configuration:', errorMessage);
if (error && typeof error === 'object' && 'errors' in error) {
logger.error('Validation errors:', error.errors);
}
throw error;