File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change 33 * Used for consistent error handling across the application
44 */
55export const CONFIG_ERROR_MESSAGES = {
6+ CONFIG_NOT_FOUND : 'Configuration not found' ,
67 VALIDATION_FAILED : 'Configuration validation failed' ,
78 NO_DASHBOARDS : 'No dashboards found in configuration' ,
8- DEPARTMENT_FETCH_FAILED : ( name : string ) =>
9- `Failed to load ${ name } configuration` ,
109 INVALID_CONFIG : 'Invalid configuration format' ,
1110 SCHEMA_VALIDATION_FAILED : 'Configuration does not match required schema' ,
1211} as const ;
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ export const getConfig = async <T extends AppConfig>(
2020 // Fetch configuration from server
2121 const config = await fetchConfig < T > ( configPath ) ;
2222 if ( ! config ) {
23- throw new Error ( CONFIG_ERROR_MESSAGES . FETCH_FAILED ) ;
23+ throw new Error ( CONFIG_ERROR_MESSAGES . CONFIG_NOT_FOUND ) ;
2424 }
2525
2626 // Validate configuration against schema
You can’t perform that action at this time.
0 commit comments