func (s *State) appendErr(err error) {
	if err != nil {
		log.Printf("error: %s", err)
	}
}
// appendErr logs an error, if err is not nil.
appendErr logs an error, if err is not nil.
// appendErr logs an error if err is not nil .
func (s *State) appendErr(err error) {
	if err != nil {
		log.Printf("error: %s", err)
	}
}
func ( s * State ) appendErr ( err error ) { if err != nil { log . Printf ( " " , err ) } }
appendErr logs an error, if err is not nil.
appendErr logs an error if err is not nil .