components-actual
diagnostic skips content of component/unit errors
#2940
Labels
components-actual
diagnostic skips content of component/unit errors
#2940
The
components-actual
diagnostic reports the observed component state stored in(*Coordinator).State().Components
. One part of this structure isErr
fields on each component and unit. However, these are bareerror
objects, and the diagnostic relies on them to properly serialize themselves during YAML encoding, which many error types do not do. For example setting a component's error toErr: errors.New("extremely important error")
will just be encoded to yaml aserr: {}
.We should make changes to the internal error structures and/or the diagnostic's processing of Components to make sure we get the text content of these errors.
The text was updated successfully, but these errors were encountered: