36
// internalErr and a reference-id. An opaque error containing the reference-id is
37
// returned. Intended to be used to hide internal errors from end users.
38
>
func logInternalError(logger log.Logger, internalMsg string, internalErr error) error {
chasm_invocation.go
39
>
referenceID := uuid.NewString()
40
>
logger.Error(internalMsg, tag.Error(internalErr), tag.String("reference-id", referenceID))
41
>
return fmt.Errorf("internal error, reference-id: %v", referenceID)
42
>
}
43
44
func (c chasmInvocation) Invoke(ctx context.Context, ns *namespace.Namespace, e taskExecutor, task InvocationTask) invocationResult {