Fix incorrect response to invalid input on bulk edit route (#579)

This commit is contained in:
triphora
2023-05-06 10:45:29 -04:00
committed by GitHub
parent 339ac05443
commit b713b324f9

View File

@@ -1282,7 +1282,10 @@ pub async fn projects_edit(
)));
}
} else if project.inner.status.is_hidden() {
return Ok(HttpResponse::NotFound().body(""));
return Err(ApiError::InvalidInput(format!(
"Project {} not found",
ProjectId(project.inner.id.0 as u64)
)));
} else {
return Err(ApiError::CustomAuthentication(format!(
"You are not a member of project {}!",