From 3beec0878c86c1abca57bc31967fa19da9d43d6a Mon Sep 17 00:00:00 2001 From: dal Date: Fri, 4 Apr 2025 16:19:31 -0600 Subject: [PATCH] fix the string error --- .../src/routes/rest/routes/datasets/post_dataset.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/server/src/routes/rest/routes/datasets/post_dataset.rs b/api/server/src/routes/rest/routes/datasets/post_dataset.rs index a8ca1dd26..c4877b303 100644 --- a/api/server/src/routes/rest/routes/datasets/post_dataset.rs +++ b/api/server/src/routes/rest/routes/datasets/post_dataset.rs @@ -36,14 +36,14 @@ pub async fn post_dataset( Ok(None) => { return Err(( StatusCode::FORBIDDEN, - "User does not belong to any organization", + "User does not belong to any organization".to_string(), )); } Err(e) => { tracing::error!("Error getting user organization id: {:?}", e); return Err(( StatusCode::INTERNAL_SERVER_ERROR, - "Error getting user organization id", + "Error getting user organization id".to_string(), )); } }; @@ -53,14 +53,14 @@ pub async fn post_dataset( Ok(false) => { return Err(( StatusCode::FORBIDDEN, - "Insufficient permissions", + "Insufficient permissions".to_string(), )) } Err(e) => { tracing::error!("Error checking user permissions: {:?}", e); return Err(( StatusCode::INTERNAL_SERVER_ERROR, - "Error checking user permissions", + "Error checking user permissions".to_string(), )); } } @@ -78,7 +78,7 @@ pub async fn post_dataset( tracing::error!("Error creating dataset: {:?}", e); return Err(( StatusCode::INTERNAL_SERVER_ERROR, - "Error creating dataset", + "Error creating dataset".to_string(), )); } };