Skip to content

Add error message to member when can not be updated

What does this MR do and why?

Currently when a user attempts to add a project_bot it gives a confusing message and fails due to a custom error not being added.

So far we have removed the project_bot from the selectable users in the invite modal as part of #355659 (closed)

By adding further messaging here in the service for the failure, we will finish this up by adding messaging that is more specific as to why the update/creation failed.

We could deny project_bots altogether, but that could also affect our process of creating them. So updating the messaging here seemed to be the simplest first step in solving this problem.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #355659 (closed)

Edited by Doug Stull

Merge request reports