gitlab.com/evatix-go/core@v1.3.55/errcore/CompiledError.go (about) 1 package errcore 2 3 import "errors" 4 5 func CompiledError(mainErr error, additionalMessage string) error { 6 if mainErr == nil { 7 return nil 8 } 9 10 return errors.New( 11 CompiledErrorString(mainErr, additionalMessage)) 12 }