diff --git a/type_error.go b/type_error.go index 0e34958c..0c46a6d2 100644 --- a/type_error.go +++ b/type_error.go @@ -37,6 +37,9 @@ type ErrorDetail struct { } func (r *ErrorDetail) String() string { + if r == nil { + return "" + } s := new(strings.Builder) permissionActions := []string{} permissionSubjects := map[string][]string{}