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

     1  package errcore
     2  
     3  import (
     4  	"gitlab.com/evatix-go/core/constants"
     5  )
     6  
     7  func ToString(err error) string {
     8  	if err == nil {
     9  		return constants.EmptyString
    10  	}
    11  
    12  	return err.Error()
    13  }