fixed some lint issues
This commit is contained in:
parent
566f5dac92
commit
969cbad7ac
14 changed files with 99 additions and 29 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue