We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00a4730 commit c7f6528Copy full SHA for c7f6528
src/cargo/core/compiler/custom_build.rs
@@ -773,7 +773,12 @@ impl<'de> serde::Deserialize<'de> for BuildOutput {
773
// require an intermediate step to translate LinksOverride to
774
// BuildOutput, converting the ConfigRelativePath values to PathBuf.
775
776
- let lo = LinksOverride::deserialize(deserializer)?;
+ let lo = LinksOverride::deserialize(deserializer).map_err(|e| {
777
+ serde::de::Error::custom(format!(
778
+ "failed to load config [target] links override table: {}",
779
+ e
780
+ ))
781
+ })?;
782
if lo.warning.is_some() {
783
return Err(Error::custom(
784
"`warning` is not supported in build script overrides",
0 commit comments