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

     1  package errcore
     2  
     3  import (
     4  	"errors"
     5  	"fmt"
     6  )
     7  
     8  func MessageWithRefToError(msg string, reference interface{}) error {
     9  	return errors.New(fmt.Sprintf(
    10  		messageMapFormat,
    11  		msg,
    12  		reference),
    13  	)
    14  }