Use log::error!
in a few more places
This commit is contained in:
parent
7af7e1f253
commit
d328ee647f
2 changed files with 8 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue