From 07050cf9b67ac9484c6be96311a9d9f6f4498e6e Mon Sep 17 00:00:00 2001 From: Mathias Date: Fri, 2 Oct 2026 16:45:25 +0200 Subject: [PATCH] feat(web): say in words why a recording was refused for its real length (review F2) Co-Authored-By: Claude Sonnet 5.5 --- internal/web/uploads.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/web/uploads.go b/internal/web/uploads.go index 9b4d8e2..b139846 100644 --- a/internal/web/uploads.go +++ b/internal/web/uploads.go @@ -203,6 +203,10 @@ func uploadFailureMessage(k domain.UploadErrorKind) string { switch k { case domain.UploadErrInterrupted: return "The server restarted before this recording was transcribed. Please upload it again." + case domain.UploadErrTooLong: + return "This recording is longer than the limit once its audio is read (the file's header said otherwise). Please upload a shorter recording." + case domain.UploadErrIncomplete: + return "This recording ends much earlier than the file says it should; it may be cut off or damaged. Please upload the complete recording." case domain.UploadErrTranscriptionFailed: return "Transcription failed on every available service. Please upload it again later." default: