@@ -144,12 +144,12 @@ fn sync(
144
144
// attempt. If anything fails here we basically just move on to the next
145
145
// crate to work with.
146
146
for ws in workspaces {
147
- let ( packages, resolve) =
148
- ops :: resolve_ws ( ws , dry_run ) . context ( "failed to load pkg lockfile" ) ?;
147
+ let ( packages, resolve) = ops :: resolve_ws ( ws , dry_run )
148
+ . with_context ( || format ! ( "failed to load lockfile for {}" , ws . root ( ) . display ( ) ) ) ?;
149
149
150
150
packages
151
151
. get_many ( resolve. iter ( ) )
152
- . context ( "failed to download packages" ) ?;
152
+ . with_context ( || format ! ( "failed to download packages for {}" , ws . root ( ) . display ( ) ) ) ?;
153
153
154
154
for pkg in resolve. iter ( ) {
155
155
let sid = if opts. respect_source_config {
@@ -187,12 +187,12 @@ fn sync(
187
187
// Next up let's actually download all crates and start storing internal
188
188
// tables about them.
189
189
for ws in workspaces {
190
- let ( packages, resolve) =
191
- ops :: resolve_ws ( ws , dry_run ) . context ( "failed to load pkg lockfile" ) ?;
190
+ let ( packages, resolve) = ops :: resolve_ws ( ws , dry_run )
191
+ . with_context ( || format ! ( "failed to load lockfile for {}" , ws . root ( ) . display ( ) ) ) ?;
192
192
193
193
packages
194
194
. get_many ( resolve. iter ( ) )
195
- . context ( "failed to download packages" ) ?;
195
+ . with_context ( || format ! ( "failed to download packages for {}" , ws . root ( ) . display ( ) ) ) ?;
196
196
197
197
for pkg in resolve. iter ( ) {
198
198
// No need to vendor path crates since they're already in the
0 commit comments