mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
solver conflicts
This commit is contained in:
@ -1,7 +1,12 @@
|
||||
use crate::FlowyError;
|
||||
|
||||
use flowy_collaboration::errors::ErrorCode;
|
||||
|
||||
impl std::convert::From<flowy_collaboration::errors::CollaborateError> for FlowyError {
|
||||
fn from(error: flowy_collaboration::errors::CollaborateError) -> Self {
|
||||
FlowyError::internal().context(error)
|
||||
match error.code {
|
||||
ErrorCode::RecordNotFound => FlowyError::record_not_found().context(error.msg),
|
||||
_ => FlowyError::internal().context(error.msg),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,5 @@
|
||||
use crate::FlowyError;
|
||||
|
||||
impl std::convert::From<lib_ot::errors::OTError> for FlowyError {
|
||||
fn from(error: lib_ot::errors::OTError) -> Self {
|
||||
FlowyError::internal().context(error)
|
||||
}
|
||||
fn from(error: lib_ot::errors::OTError) -> Self { FlowyError::internal().context(error.msg) }
|
||||
}
|
||||
|
Reference in New Issue
Block a user