File tree Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Expand file tree Collapse file tree 2 files changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -645,7 +645,13 @@ impl<'cfg> Workspace<'cfg> {
645
645
} ;
646
646
647
647
for path in & members_paths {
648
- self . find_path_deps ( & path. join ( "Cargo.toml" ) , & root_manifest_path, false ) ?;
648
+ self . find_path_deps ( & path. join ( "Cargo.toml" ) , & root_manifest_path, false )
649
+ . with_context ( || {
650
+ format ! (
651
+ "failed to load manifest for workspace member `{}`" ,
652
+ path. display( )
653
+ )
654
+ } ) ?;
649
655
}
650
656
651
657
if let Some ( default) = default_members_paths {
Original file line number Diff line number Diff line change @@ -408,7 +408,10 @@ fn invalid_members() {
408
408
. with_status ( 101 )
409
409
. with_stderr (
410
410
"\
411
- error: failed to read `[..]Cargo.toml`
411
+ [ERROR] failed to load manifest for workspace member `[..]/foo`
412
+
413
+ Caused by:
414
+ failed to read `[..]foo/foo/Cargo.toml`
412
415
413
416
Caused by:
414
417
[..]
@@ -1869,7 +1872,10 @@ fn glob_syntax_invalid_members() {
1869
1872
. with_status ( 101 )
1870
1873
. with_stderr (
1871
1874
"\
1872
- error: failed to read `[..]Cargo.toml`
1875
+ [ERROR] failed to load manifest for workspace member `[..]/crates/bar`
1876
+
1877
+ Caused by:
1878
+ failed to read `[..]foo/crates/bar/Cargo.toml`
1873
1879
1874
1880
Caused by:
1875
1881
[..]
You can’t perform that action at this time.
0 commit comments