Skip to content

Commit fc4b2c6

Browse files
author
Jim Minter
committed
make template service broker forbidden error message friendlier
1 parent 2458531 commit fc4b2c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/template/registry/templateinstance/strategy.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (s *templateInstanceStrategy) validateImpersonation(templateInstance *templ
136136
Group: templateapi.GroupName,
137137
Resource: "templateinstances",
138138
}); err != nil {
139-
return field.ErrorList{field.Forbidden(field.NewPath("spec.requester.username"), fmt.Sprintf("impersonation forbidden: %v", err))}
139+
return field.ErrorList{field.Forbidden(field.NewPath("spec.requester.username"), "you do not have permission to set username")}
140140
}
141141
}
142142

0 commit comments

Comments
 (0)