mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-08-03 22:41:08 +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)
|
|
}
|
|
}
|