Use log::error! in a few more places

This commit is contained in:
Jonas Schievink 2020-09-17 17:37:52 +02:00
parent 7af7e1f253
commit d328ee647f
2 changed files with 8 additions and 1 deletions

View file

@ -134,6 +134,10 @@ fn run_server() -> Result<()> {
let discovered = ProjectManifest::discover_all(&workspace_roots);
log::info!("discovered projects: {:?}", discovered);
if discovered.is_empty() {
log::error!("failed to find any projects in {:?}", workspace_roots);
}
config.linked_projects = discovered.into_iter().map(LinkedProject::from).collect();
}

View file

@ -288,7 +288,10 @@ impl Config {
let path = self.root_path.join(it);
match ProjectManifest::from_manifest_file(path) {
Ok(it) => it.into(),
Err(_) => continue,
Err(e) => {
log::error!("failed to load linked project: {}", e);
continue;
}
}
}
ManifestOrProjectJson::ProjectJson(it) => {