mirror of
https://github.com/prometheus/alertmanager
synced 2024-12-27 08:32:15 +00:00
Dont output malformed error body
This commit is contained in:
parent
6f8ccb031c
commit
1ccc7b1133
@ -33,7 +33,7 @@ errorToString err =
|
||||
|
||||
BadStatus resp ->
|
||||
parseError resp.body
|
||||
|> Maybe.withDefault (resp.status.message ++ " " ++ resp.body)
|
||||
|> Maybe.withDefault (toString resp.status.code ++ " " ++ resp.status.message)
|
||||
|
||||
BadPayload err resp ->
|
||||
-- OK status, unexpected payload
|
||||
|
Loading…
Reference in New Issue
Block a user