Some("") => Ok(Some(None)),
Some(str_url) => match Url::parse(str_url) {
Ok(url) => Ok(Some(Some(url.into()))),
- Err(e) => Err(LemmyError::from(e).with_message("invalid_url")),
+ Err(e) => Err(LemmyError::from_error_message(e, "invalid_url")),
},
None => Ok(None),
}