From d11262ad014992da148664832ad31ed1c27385b5 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 31 May 2025 15:32:22 -0600 Subject: [PATCH] Make the bucket validator throw an error rather than returning a weird value --- module/utils/buckets.mjs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/module/utils/buckets.mjs b/module/utils/buckets.mjs index c689445..66a3913 100644 --- a/module/utils/buckets.mjs +++ b/module/utils/buckets.mjs @@ -52,8 +52,7 @@ export function validateBucketConfig(config) { const validator = validators[conf.type]; if (validator == null) { - Logger.error(`Failed to find type validator for: ${conf.type}`); - return false; + throw new Error(`Failed to find type validator for: ${conf.type}`); }; // Disallow function choices if present