fix: fail fast on malformed custom module YAML

User customizations must be valid - silent skip hides broken configs.
This commit is contained in:
Alex Verkhovsky 2025-12-08 10:28:11 -07:00
parent 6718475f16
commit 09538099d7
2 changed files with 4 additions and 4 deletions

View File

@ -391,8 +391,8 @@ class ModuleManager {
if (config.code === moduleName) { if (config.code === moduleName) {
return modulePath; return modulePath;
} }
} catch { } catch (error) {
// Skip if can't read config throw new Error(`Failed to parse module.yaml at ${configPath}: ${error.message}`);
} }
} }
} }

View File

@ -636,8 +636,8 @@ class UI {
moduleData = yaml.load(yamlContent); moduleData = yaml.load(yamlContent);
foundPath = configPath; foundPath = configPath;
break; break;
} catch { } catch (error) {
// Continue to next path throw new Error(`Failed to parse config at ${configPath}: ${error.message}`);
} }
} }
} }