Browse Source

chore: revise error msg

pull/2303/head
Wing-Kam Wong 3 years ago
parent
commit
98a99c6227
  1. 2
      packages/nocodb/src/lib/meta/api/projectUserApis.ts

2
packages/nocodb/src/lib/meta/api/projectUserApis.ts

@ -58,7 +58,7 @@ async function userInvite(req, res, next): Promise<any> {
const projectUser = await ProjectUser.get(req.params.projectId, user.id); const projectUser = await ProjectUser.get(req.params.projectId, user.id);
if (projectUser) { if (projectUser) {
NcError.badRequest( NcError.badRequest(
`${user.email} has been added to this project already` `${user.email} with role ${projectUser.roles} already exists in this project`
); );
} }

Loading…
Cancel
Save