func (err ProfilingError) Error() string {
	return string(err)
}
Error implementation of Error interface
package cmd
import (
	"context"
	"fmt"
	"os"
	"os/signal"
	"path/filepath"
	"strconv"
	"strings"
	"github.com/hashicorp/go-multierror"
	"github.com/pkg/errors"
	"github.com/qlik-oss/gopherciser/buildmetrics"
	"github.com/qlik-oss/gopherciser/config"
	"github.com/qlik-oss/gopherciser/helpers"
	"github.com/qlik-oss/gopherciser/profile"
	"github.com/qlik-oss/gopherciser/scenario"
	"github.com/qlik-oss/gopherciser/scheduler"
	"github.com/qlik-oss/gopherciser/senseobjdef"
	"github.com/spf13/cobra"
)
type (
	JSONParseError string
	JSONValidateError string
	LogFormatError string
	ObjectDefError string
	ProfilingError string
	MetricError string
	OsError string
	SummaryTypeError string
	MaxErrorsReachedError struct {
		SubError error
		Msg      string
	}
)
var (
	metricsPort      int
	metricsAddress   string
	metricsLabel     string
	metricsGroupings []string
	profTyp          string
	objDefFile       string
	regression       bool
)
func (err JSONParseError) Error() string {
	return string(err)
}
func (err JSONValidateError) Error() string {
	return string(err)
}
func (err LogFormatError) Error() string {
	return string(err)
}
func (err ObjectDefError) Error() string {
	return string(err)
}