diff --git a/apps/labrinth/src/routes/v3/organizations.rs b/apps/labrinth/src/routes/v3/organizations.rs index fbe5bb2f64..51c46eafa9 100644 --- a/apps/labrinth/src/routes/v3/organizations.rs +++ b/apps/labrinth/src/routes/v3/organizations.rs @@ -644,7 +644,7 @@ pub async fn organizations_edit( if let Some(slug) = &new_organization.slug { if !perms.contains(OrganizationPermissions::EDIT_DETAILS) { return Err(ApiError::Auth(eyre::eyre!( - "You do not have the permissions to edit the slug of this organization!", + "You do not have the permissions to edit this organization's URL!", ))); } @@ -657,7 +657,7 @@ pub async fn organizations_edit( .wrap_internal_err("fetching organization from database")?; if existing.is_some() { return Err(ApiError::Request(eyre::eyre!( - "Slug collides with other organization's id!", + "Your URL is already being used by another organization!", ))); } @@ -683,7 +683,7 @@ pub async fn organizations_edit( if results.exists.unwrap_or(true) { return Err(ApiError::Request(eyre::eyre!( - "Slug collides with other organization's id!", + "Your URL is already being used by another organization!", ))); } } diff --git a/apps/labrinth/src/routes/v3/projects/mod.rs b/apps/labrinth/src/routes/v3/projects/mod.rs index 06aa34a061..e0d246c29f 100644 --- a/apps/labrinth/src/routes/v3/projects/mod.rs +++ b/apps/labrinth/src/routes/v3/projects/mod.rs @@ -1008,7 +1008,7 @@ pub async fn project_edit_internal( if let Some(slug) = &new_project.slug { if !perms.contains(ProjectPermissions::EDIT_DETAILS) { return Err(ApiError::Auth(eyre::eyre!( - "You do not have the permissions to edit the slug of this project!", + "You do not have the permissions to edit this project's URL!", ))); } @@ -1021,7 +1021,7 @@ pub async fn project_edit_internal( .wrap_internal_err("checking project slug availability")?; if existing.is_some() { return Err(ApiError::Request(eyre::eyre!( - "Slug collides with other project's id!", + "Your URL is already being used by another project!", ))); } @@ -1047,7 +1047,7 @@ pub async fn project_edit_internal( if results.exists.unwrap_or(true) { return Err(ApiError::Request(eyre::eyre!( - "Slug collides with other project's id!", + "Your URL is already being used by another project!", ))); } }