Skip to content

Commit 2ecf5fd

Browse files
authored
fix(group-events): Fix typo and error text (#82490)
Correct `it's` to `its` and change the text altogether if it's not a known reserved keyword for the `event_id`.
1 parent fd99887 commit 2ecf5fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: src/sentry/issues/endpoints/group_event_details.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@ def get(self, request: Request, group: Group, event_id: str) -> Response:
225225
event = event.for_group(event.group)
226226

227227
if event is None:
228-
return Response(
229-
{
230-
"detail": "Event not found. The event ID may be incorrect, or it's age exceeded the retention period."
231-
},
232-
status=404,
228+
error_text = (
229+
"Event not found. The event ID may be incorrect, or its age exceeded the retention period."
230+
if event_id not in {"recommended", "latest", "oldest"}
231+
else "No matching event found. Try changing the environments, date range, or query."
233232
)
233+
return Response({"detail": error_text}, status=404)
234234

235235
collapse = request.GET.getlist("collapse", [])
236236
if "stacktraceOnly" in collapse:

0 commit comments

Comments
 (0)