mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-04 06:50:23 +00:00
8 lines
212 B
Rust
8 lines
212 B
Rust
![]() |
use crate::{ErrorCode, FlowyError};
|
||
|
|
||
|
impl std::convert::From<url::ParseError> for FlowyError {
|
||
|
fn from(error: url::ParseError) -> Self {
|
||
|
FlowyError::new(ErrorCode::InvalidURL, "").with_context(error)
|
||
|
}
|
||
|
}
|