AppFlowy/frontend/rust-lib/flowy-error/src/ext/serde.rs

8 lines
186 B
Rust
Raw Normal View History

2021-12-14 10:04:51 +00:00
use crate::FlowyError;
impl std::convert::From<serde_json::Error> for FlowyError {
2022-01-23 04:14:00 +00:00
fn from(error: serde_json::Error) -> Self {
FlowyError::internal().context(error)
}
2021-12-14 10:04:51 +00:00
}