File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,16 @@ impl RustAnalyzer {
45
45
let projects = find_project_manifests ( & cfg. inputs ) . context ( "loading inputs" ) ?;
46
46
for project in projects {
47
47
let manifest = project. manifest_path ( ) ;
48
- let ( db, vfs, _macro_server) =
49
- load_workspace_at ( manifest. as_ref ( ) , & config, & load_config, & progress) ?;
50
- let path: & Path = manifest. parent ( ) . as_ref ( ) ;
51
- workspace. insert ( path. to_path_buf ( ) , ( vfs, db) ) ;
48
+
49
+ match load_workspace_at ( manifest. as_ref ( ) , & config, & load_config, & progress) {
50
+ Ok ( ( db, vfs, _macro_server) ) => {
51
+ let path: & Path = manifest. parent ( ) . as_ref ( ) ;
52
+ workspace. insert ( path. to_path_buf ( ) , ( vfs, db) ) ;
53
+ }
54
+ Err ( err) => {
55
+ log:: error!( "failed to load workspace for {}: {}" , manifest, err) ;
56
+ }
57
+ }
52
58
}
53
59
Ok ( RustAnalyzer { workspace } )
54
60
}
You can’t perform that action at this time.
0 commit comments