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

     1  package errcore
     2  
     3  import (
     4  	"errors"
     5  )
     6  
     7  func ExpectingErrorSimpleNoType(
     8  	title,
     9  	wasExpecting,
    10  	actual interface{},
    11  ) error {
    12  	msg := ExpectingSimpleNoType(
    13  		title,
    14  		wasExpecting,
    15  		actual)
    16  
    17  	return errors.New(msg)
    18  }