Remote storage: propagate json marshal errors (#6622)
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
0cff72d756
commit
aad8f89ecb
|
@ -84,7 +84,7 @@ func (s *Storage) ApplyConfig(conf *config.Config) error {
|
|||
for _, rrConf := range conf.RemoteReadConfigs {
|
||||
hash, err := toHash(rrConf)
|
||||
if err != nil {
|
||||
return nil
|
||||
return err
|
||||
}
|
||||
|
||||
// Don't allow duplicate remote read configs.
|
||||
|
|
Loading…
Reference in New Issue