github.com/kyma-incubator/compass/components/director@v0.0.0-20230623144113-d764f56ff805/internal/panic_handler/panic_handler.go (about)

     1  package panichandler
     2  
     3  import (
     4  	"context"
     5  	"fmt"
     6  
     7  	"github.com/kyma-incubator/compass/components/director/pkg/apperrors"
     8  )
     9  
    10  // RecoverFn missing godoc
    11  func RecoverFn(ctx context.Context, err interface{}) error {
    12  	errText := fmt.Sprintf("%+v", err)
    13  
    14  	return apperrors.NewInternalError(errText)
    15  }