// prettyError writes err to standard output.
330323
func prettyError(vm *otto.Otto, err error, w io.Writer) {
	failure := err.Error()
	if ottoErr, ok := err.(*otto.Error); ok {
		failure = ottoErr.String()
	}
	fmt.Fprint(w, ErrorColor("%s", failure))
}
712304
func (s *IndicesRolloverService) Pretty(pretty bool) *IndicesRolloverService {
	s.pretty = pretty
	return s
}
205183
func (l Logger) Pretty(os ...interface{}) {
	content := ""
	for i := range os {
		if ret, err := json.MarshalIndent(os[i], "", "\t"); err == nil {
			content += string(ret) + "\n"
		}
	}
	l.Output(2, PRETTY+content)
}
1024010
func (s *IndicesGetTemplateService) Pretty(pretty bool) *IndicesGetTemplateService {
	s.pretty = pretty
	return s
}
1202139
func (s *SnapshotCreateRepositoryService) Pretty(pretty bool) *SnapshotCreateRepositoryService {
	s.pretty = pretty
	return s
}
649561
func (s *IndicesUnfreezeService) Pretty(pretty bool) *IndicesUnfreezeService {
	s.pretty = pretty
	return s
}
947134
func (s *IndicesPutMappingService) Pretty(pretty bool) *IndicesPutMappingService {
	s.pretty = pretty
	return s
}
394619
func (s *ReindexService) Pretty(pretty bool) *ReindexService {
	s.pretty = pretty
	return s
}
681594
func (b *UpdateService) Pretty(pretty bool) *UpdateService {
	b.pretty = pretty
	return b
}
618143
func (s *CatAllocationService) Pretty(pretty bool) *CatAllocationService {
	s.pretty = pretty
	return s
}
298959
func (s *XPackSecurityDeleteRoleService) Pretty(pretty bool) *XPackSecurityDeleteRoleService {
	s.pretty = pretty
	return s
}
20706
func (s *IngestDeletePipelineService) Pretty(pretty bool) *IngestDeletePipelineService {
	s.pretty = pretty
	return s
}
617675
func (s *MgetService) Pretty(pretty bool) *MgetService {
	s.pretty = pretty
	return s
}
496082
func formatError(err error) string {
	if err, ok := err.(kerrs.Aggregate); ok {
		var errorStrings []string
		for _, err := range err.Errors() {
			errorStrings = append(errorStrings, err.Error())
		}
		return strings.Join(errorStrings, "\n")
	}

	return err.Error()
}
1081749
func (s *SnapshotVerifyRepositoryService) Pretty(pretty bool) *SnapshotVerifyRepositoryService {
	s.pretty = pretty
	return s
}
388900
func (s *SearchShardsService) Pretty(pretty bool) *SearchShardsService {
	s.pretty = pretty
	return s
}
1044806
func (s *IndicesDeleteService) Pretty(pretty bool) *IndicesDeleteService {
	s.pretty = pretty
	return s
}