Return a specific 404 when starting a debug replay with no recordings in range (#24024)

This commit is contained in:
Josh Hawkins
2026-08-18 10:08:52 -05:00
committed by GitHub
parent 8384a8c5b3
commit 036bae4ea9
7 changed files with 54 additions and 5 deletions
@@ -217,7 +217,11 @@ export default function DebugReplayDialog({
error.response?.data?.detail ||
"Unknown error";
if (error.response?.status === 409) {
if (error.response?.status === 404) {
toast.error(t("dialog.toast.noRecordings"), {
position: "top-center",
});
} else if (error.response?.status === 409) {
toast.error(t("dialog.toast.alreadyActive"), {
position: "top-center",
closeButton: true,