Skip to content

Commit

Permalink
[target-spec] add more info to Unavailable error variant
Browse files Browse the repository at this point in the history
  • Loading branch information
sunshowers committed Dec 23, 2024
1 parent d9d712a commit 0d3f832
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ source: target-spec-miette/tests/integration/main.rs
expression: "format!(\"{report:?}\")"
snapshot_kind: text
---
× custom platform currently unavailable
× custom platforms are currently unavailable: to enable them, add the
`custom` feature to target-spec
6 changes: 5 additions & 1 deletion target-spec/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,11 @@ impl fmt::Display for CustomTripleCreateError {
write!(f, "error deserializing custom target JSON for `{triple}`")
}
Self::Unavailable => {
write!(f, "custom platform currently unavailable")
write!(
f,
"custom platforms are currently unavailable: \
to enable them, add the `custom` feature to target-spec"
)
}
}
}
Expand Down

0 comments on commit 0d3f832

Please sign in to comment.