diff options
Diffstat (limited to 'src/ui/handlers')
| -rw-r--r-- | src/ui/handlers/conversation.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ui/handlers/conversation.rs b/src/ui/handlers/conversation.rs index 2ff090c..102efc6 100644 --- a/src/ui/handlers/conversation.rs +++ b/src/ui/handlers/conversation.rs @@ -37,11 +37,11 @@ pub enum Error { Internal(Internal), } -impl From<app::Error> for Error { - fn from(error: app::Error) -> Self { +impl From<app::GetError> for Error { + fn from(error: app::GetError) -> Self { match error { - app::Error::NotFound(_) | app::Error::Deleted(_) => Self::NotFound, - other => Self::Internal(other.into()), + app::GetError::NotFound(_) | app::GetError::Deleted(_) => Self::NotFound, + app::GetError::Failed(_) => Self::Internal(error.into()), } } } |
