Documentation ¶ Index ¶ func LogAndProcessError(ctx *context.Context, status int, obj any, cb func(string)) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func LogAndProcessError ¶ func LogAndProcessError(ctx *context.Context, status int, obj any, cb func(string)) LogAndProcessError logs an error and calls a custom callback with the processed error message. If the error is an InternalServerError the message is stripped if the user is not an admin. Types ¶ This section is empty. Source Files ¶ View all Source files helper.go Click to show internal directories. Click to hide internal directories.