diff --git a/apps/labrinth/src/routes/v3/organizations.rs b/apps/labrinth/src/routes/v3/organizations.rs index 3157107981..381fc99c81 100644 --- a/apps/labrinth/src/routes/v3/organizations.rs +++ b/apps/labrinth/src/routes/v3/organizations.rs @@ -643,7 +643,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!", ))); } @@ -656,7 +656,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!", ))); } @@ -682,7 +682,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 99c0a58638..763b8e2add 100644 --- a/apps/labrinth/src/routes/v3/projects/mod.rs +++ b/apps/labrinth/src/routes/v3/projects/mod.rs @@ -1009,7 +1009,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!", ))); } @@ -1022,7 +1022,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!", ))); } @@ -1048,7 +1048,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!", ))); } }