feat(web): say in words why a recording was refused for its real length (review F2)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-02 16:45:25 +02:00
co-authored by Claude Sonnet 5.5
parent 16cd246241
commit 07050cf9b6
+4
View File
@@ -203,6 +203,10 @@ func uploadFailureMessage(k domain.UploadErrorKind) string {
switch k { switch k {
case domain.UploadErrInterrupted: case domain.UploadErrInterrupted:
return "The server restarted before this recording was transcribed. Please upload it again." 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: case domain.UploadErrTranscriptionFailed:
return "Transcription failed on every available service. Please upload it again later." return "Transcription failed on every available service. Please upload it again later."
default: default: