From: bors Date: Tue, 18 Apr 2017 04:26:49 +0000 (+0000) Subject: Auto merge of #3924 - koivunej:issue_3922, r=alexcrichton X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~9^2~76 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=01d403f34d34b63815785cdac4391cc41df6280f;p=cargo.git Auto merge of #3924 - koivunej:issue_3922, r=alexcrichton Adjust submodule updating failure reporting This PR changes output of cargo when updating a dependency fails because of it's submodules cannot be loaded. In my original example this was caused by submodule pointing to a revision which was deleted by force pushing. Fixes #3922. Before: ``` $ cargo check Updating git repository `` error: failed to load source for a dependency on `foo` Caused by: Unable to update ?rev=hash To learn more, run the command again with --verbose. ``` After: ``` $ cargo check Updating git repository `` error: failed to load source for a dependency on `foo` Caused by: Unable to update ?rev=hash Caused by: Failed to update submodule `submodule` To learn more, run the command again with --verbose. ``` `--verbose` showing an additional `[9/-3] object not found - no match for id (hash)` has not been changed. @alexcrichton since we have this nice timezone difference there was no chance of mentoring so far but any comments/suggestions are highly welcome. I'll likely check back on this next week. --- 01d403f34d34b63815785cdac4391cc41df6280f