From: bors Date: Fri, 29 Sep 2017 07:09:41 +0000 (+0000) Subject: Auto merge of #4547 - lukaslueg:installlisterror, r=alexcrichton X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~6^2~31 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a92b7c801ec62ef489f55542eaa908c366bfc8c7;p=cargo.git Auto merge of #4547 - lukaslueg:installlisterror, r=alexcrichton Improve error message for crippled .crates.toml In case `.crates.toml` can't be parsed for some reason, the user is left wondering where to look. The problem is exasperated by the fact that `.cargo.toml` is a hidden file. Improve the error message during `install`/`uninstall`/`list` and point to the path of `.crates.toml`. A error message might now look like > error: failed to parse crate metadata at `/home/foobar/.cargo/.crates.toml` > > Caused by: > invalid TOML found for metadata > > Caused by: > ... A unit-test for a crippled `.cargo.toml` had been missing before, added that. --- a92b7c801ec62ef489f55542eaa908c366bfc8c7