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) {
return modulePath;
}
} catch {
// Skip if can't read config
} catch (error) {
throw new Error(`Failed to parse module.yaml at ${configPath}: ${error.message}`);
}
}
}

View File

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