Remote storage: propagate json marshal errors (#6622)

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
Julien Pivotto 2020-01-14 09:40:30 +01:00 committed by Brian Brazil
parent 0cff72d756
commit aad8f89ecb
1 changed files with 1 additions and 1 deletions

View File

@ -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.