From ee6e728cd4a29c0a706ff6ffbba2ecaecf9a8711 Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Thu, 1 Aug 2024 11:00:17 +0200 Subject: [PATCH 1/2] fix: Improve "release not found" message (#2112) Clarify that users need to check the release, project, and organization when encountering a "release not found" error, since any of these being wrong can cause a "release not found" error. Fixes #2111 --- src/api/errors/api_error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/errors/api_error.rs b/src/api/errors/api_error.rs index 12ab158ee7..3fc6a7fd30 100644 --- a/src/api/errors/api_error.rs +++ b/src/api/errors/api_error.rs @@ -26,7 +26,7 @@ pub(in crate::api) enum ApiErrorKind { ResourceNotFound, #[error("Project not found. Please check that you entered the project and organization IDs or slugs correctly.")] ProjectNotFound, - #[error("release not found")] + #[error("Release not found. Ensure that you configured the correct release, project, and organization.")] ReleaseNotFound, #[error("chunk upload endpoint not supported by sentry server")] ChunkUploadNotSupported, From 834376364eb46a554d15d3baedb7a35e222da3b1 Mon Sep 17 00:00:00 2001 From: Daniel Szoke Date: Thu, 1 Aug 2024 11:01:46 +0200 Subject: [PATCH 2/2] fix: Improve "project not found" message (#2112) Update "project not found" message to avoid mentioning "IDs" and "slugs," which might confuse some users. Instead, make this error message follow the same format as the "release not found" message. --- src/api/errors/api_error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/errors/api_error.rs b/src/api/errors/api_error.rs index 3fc6a7fd30..775f46d509 100644 --- a/src/api/errors/api_error.rs +++ b/src/api/errors/api_error.rs @@ -24,7 +24,7 @@ pub(in crate::api) enum ApiErrorKind { OrganizationNotFound, #[error("resource not found")] ResourceNotFound, - #[error("Project not found. Please check that you entered the project and organization IDs or slugs correctly.")] + #[error("Project not found. Ensure that you configured the correct project and organization.")] ProjectNotFound, #[error("Release not found. Ensure that you configured the correct release, project, and organization.")] ReleaseNotFound,