feat: upload audio, get a private Swedish transcript, discuss it (#33, ADR-033) #39
@@ -31,6 +31,9 @@ type StatusError struct {
|
|||||||
Snippet string
|
Snippet string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// HTTPStatus implements errkind.HTTPStatuser: the code, never the snippet.
|
||||||
|
func (e *StatusError) HTTPStatus() int { return e.Code }
|
||||||
|
|
||||||
func (e *StatusError) Error() string {
|
func (e *StatusError) Error() string {
|
||||||
return fmt.Sprintf("transcribe: gateway returned HTTP %d: %s", e.Code, e.Snippet)
|
return fmt.Sprintf("transcribe: gateway returned HTTP %d: %s", e.Code, e.Snippet)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user