Fix possible segmentation fault
This commit is contained in:
parent
2c0d6404b7
commit
5230735222
2 changed files with 7 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ pub enum WhisperError {
|
|||
InvalidText,
|
||||
/// Creating a state pointer failed. Check stderr for more information.
|
||||
FailedToCreateState,
|
||||
/// No samples were provided.
|
||||
NoSamples,
|
||||
}
|
||||
|
||||
impl From<Utf8Error> for WhisperError {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue