I’m currently writing a custom vault plugin. I wonder why the Callback of
framework.PathOperation has two return values.
I mean this type:
type OperationFunc func(context.Context, *logical.Request, *FieldData) (*logical.Response, error)
If my callback encounteres an error, i can return
logical.ErrorResponse to inform the user, that something went horribly wrong. What is the use of the
error return type in this context? What is it used for?
Can anyone tell me if there are best practices when to set which return value?