// nuixError was used to handle errors from nuix (not used since v13)
nuixError was used to handle errors from nuix (not used since v13)
// nuixError was used to handle errors from nuix ( not used since v13 )
func nuixError(err error) error {
	if !strings.Contains(err.Error(), "Caused by:") {
		return err
	}
	errSlice := strings.Split(err.Error(), "Caused by:")
	if len(errSlice) != 2 {
		return err
	}
	splitted := strings.Split(errSlice[1], "\n")
	newErr := splitted[0]
	return errors.New(newErr)
}
func nuixError ( err error ) error { if ! strings . Contains ( err . Error ( ) , " " ) { return err } errSlice := strings . Split ( err . Error ( ) , " " ) if len ( errSlice ) != 2 { return err } splitted := strings . Split ( errSlice [ 1 ] , " \n " ) newErr := splitted [ 0 ] return errors . New ( newErr ) }
nuixError was used to handle errors from nuix (not used since v13)
nuixError was used to handle errors from nuix ( not used since v13 )