mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-27 02:58:55 +00:00
Add context to metadata parse error
This commit is contained in:
parent
c4130d45e3
commit
c4a2e73a6f
@ -111,7 +111,9 @@ hint: This command only works in the manifest directory of a Cargo package."#
|
||||
|
||||
let output_str =
|
||||
std::str::from_utf8(&output.stdout).context("Invalid `cargo metadata` output")?;
|
||||
let metadata: Metadata = output_str.parse()?;
|
||||
let metadata: Metadata = output_str.parse().context(
|
||||
"Issue parsing `cargo metadata` output - consider manually running it to check for issues",
|
||||
)?;
|
||||
|
||||
// try removing the target/sqlx directory before running, as stale files
|
||||
// have repeatedly caused issues in the past.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user