Make the bucket validator throw an error rather than returning a weird value
This commit is contained in:
parent
af2dac394f
commit
d11262ad01
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue