kopia lustrzana https://gitlab.com/rysiekpl/libresilient
any-of: now throws an error when no wrapped plugins configured (ref. #21)
rodzic
890708ce46
commit
a797cd697a
|
@ -29,6 +29,11 @@
|
||||||
// merge the defaults with settings from LibResilientConfig
|
// merge the defaults with settings from LibResilientConfig
|
||||||
let config = {...defaultConfig, ...init}
|
let config = {...defaultConfig, ...init}
|
||||||
|
|
||||||
|
// reality check: if no wrapped plugin configured, complain
|
||||||
|
if (config.uses.length < 1) {
|
||||||
|
throw new Error("No wrapped plugins configured!")
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* getting content using regular HTTP(S) fetch()
|
* getting content using regular HTTP(S) fetch()
|
||||||
*/
|
*/
|
||||||
|
|
Ładowanie…
Reference in New Issue