gitlab.com/evatix-go/core@v1.3.55/errcore/MeaningFulError.go (about)

     1  package errcore
     2  
     3  func MeaningfulError(
     4  	rawErrType RawErrorType,
     5  	funcName string,
     6  	err error,
     7  ) error {
     8  	if err == nil {
     9  		return nil
    10  	}
    11  
    12  	return rawErrType.Error(
    13  		funcName, err.Error())
    14  }