refactor: delete errors for state-id
because it's already deleted from state management.
This commit is contained in:
parent
6169229e60
commit
3a1fd683d6
1 changed files with 0 additions and 6 deletions
|
|
@ -39,10 +39,6 @@ pub enum WhisperError {
|
||||||
InvalidText,
|
InvalidText,
|
||||||
/// Creating a state pointer failed. Check stderr for more information.
|
/// Creating a state pointer failed. Check stderr for more information.
|
||||||
FailedToCreateState,
|
FailedToCreateState,
|
||||||
/// State pointer ID already exists.
|
|
||||||
StateIdAlreadyExists,
|
|
||||||
/// State pointer ID does not exist.
|
|
||||||
StateIdDoesNotExist,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<Utf8Error> for WhisperError {
|
impl From<Utf8Error> for WhisperError {
|
||||||
|
|
@ -105,8 +101,6 @@ impl std::fmt::Display for WhisperError {
|
||||||
"Whisper failed to convert the provided text into tokens."
|
"Whisper failed to convert the provided text into tokens."
|
||||||
),
|
),
|
||||||
FailedToCreateState => write!(f, "Creating a state pointer failed."),
|
FailedToCreateState => write!(f, "Creating a state pointer failed."),
|
||||||
StateIdAlreadyExists => write!(f, "State pointer ID already exists."),
|
|
||||||
StateIdDoesNotExist => write!(f, "State pointer ID does not exist."),
|
|
||||||
GenericError(c_int) => write!(
|
GenericError(c_int) => write!(
|
||||||
f,
|
f,
|
||||||
"Generic whisper error. Varies depending on the function. Error code: {}",
|
"Generic whisper error. Varies depending on the function. Error code: {}",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue