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

     1  package errcore
     2  
     3  func HandleFullStringsWithTracesGetter(errGetter fullStringWithTracesGetter) {
     4  	if errGetter == nil {
     5  		return
     6  	}
     7  
     8  	err := errGetter.FullStringWithTraces()
     9  
    10  	if err == nil {
    11  		return
    12  	}
    13  
    14  	panic(err.Error())
    15  }