feat: Return an error if the remote type cannot be detected
This commit is contained in:
@@ -63,12 +63,13 @@ fn find_repos(root: &Path) -> Result<Option<(Vec<repo::Repo>, Vec<String>, bool)
|
||||
let name = remote.name();
|
||||
let url = remote.url();
|
||||
let remote_type = match repo::detect_remote_type(&url) {
|
||||
Some(t) => t,
|
||||
None => {
|
||||
Ok(t) => t,
|
||||
Err(e) => {
|
||||
warnings.push(format!(
|
||||
"{}: Could not detect remote type of \"{}\"",
|
||||
"{}: Could not detect remote type of \"{}\". Reason: {}",
|
||||
&path::path_as_string(&path),
|
||||
&url
|
||||
&url,
|
||||
e
|
||||
));
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user