Stop panicking when trying to load ftp URLs.

This commit is contained in:
Ms2ger 2016-11-02 11:51:47 +01:00
parent 634a3989ad
commit 479cf1ef23

View file

@ -492,8 +492,8 @@ fn basic_fetch<UI: 'static + UIProvider>(request: Rc<Request>,
},
"ftp" => {
// XXXManishearth handle these
panic!("Unimplemented scheme for Fetch")
debug!("ftp is not implemented");
Response::network_error(NetworkError::Internal("Unexpected scheme".into()))
},
_ => Response::network_error(NetworkError::Internal("Unexpected scheme".into()))