code: func (s *State) SetError(err error) {
  	s.ErrorMsg = ""
  	if err != nil {
  		s.ErrorMsg = err.Error()
  	}
  }
docs: // SetError sets the container's error state. This is useful when we want to
  // know the error that occurred when container transits to another state
  // when inspecting it