Make the bucket validator throw an error rather than returning a weird value

This commit is contained in:
Oliver-Akins 2025-05-31 15:32:22 -06:00
parent af2dac394f
commit d11262ad01

View file

@ -52,8 +52,7 @@ export function validateBucketConfig(config) {
const validator = validators[conf.type]; const validator = validators[conf.type];
if (validator == null) { if (validator == null) {
Logger.error(`Failed to find type validator for: ${conf.type}`); throw new Error(`Failed to find type validator for: ${conf.type}`);
return false;
}; };
// Disallow function choices if present // Disallow function choices if present