| 123456789101112131415161718 | package errformatimport (	"fmt"	"reflect"	"github.com/imgproxy/imgproxy/v3/ierrors")func FormatErrType(errType string, err error) string {	errType += "_error"	if _, ok := err.(*ierrors.Error); !ok {		errType = fmt.Sprintf("%s (%s)", errType, reflect.TypeOf(err).String())	}	return errType}
 |