mirror of
https://github.com/prometheus/prometheus.git
synced 2025-01-11 05:47:27 -08:00
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 {
|
for _, rrConf := range conf.RemoteReadConfigs {
|
||||||
hash, err := toHash(rrConf)
|
hash, err := toHash(rrConf)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
// Don't allow duplicate remote read configs.
|
// Don't allow duplicate remote read configs.
|
||||||
|
|
Loading…
Reference in a new issue