fix: in healing tracker printTo when err (#17207)

This commit is contained in:
jiuker 2023-05-16 01:14:48 +08:00 committed by GitHub
parent 684399433b
commit bd2dc6c670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -298,6 +298,7 @@ func (h *healingTracker) printTo(writer io.Writer) {
b, err := json.MarshalIndent(h, "", " ")
if err != nil {
writer.Write([]byte(err.Error()))
return
}
writer.Write(b)
}