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

     1  package errcore
     2  
     3  import "gitlab.com/evatix-go/core/constants"
     4  
     5  func SimpleHandleErr(err error, msg string) {
     6  	if err == nil {
     7  		return
     8  	}
     9  
    10  	panic(err.Error() + constants.NewLineUnix + msg)
    11  }