Well, I managed to produce these. But the output was a bit ugly.
I think the stuff in Other about a "reasonable integer" is covered by
the specific strings we pass in the integer conversions, and there's
going to be a possibility of completely different kinds of problem:
Use of a format default in a builtin shape library is going to become
an error. And we don't want to add a variant for it - that's
overkill. So we'll reuse Other, and this message is not right.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
pub enum VersionError {
#[error("{0}")]
Unsupported(#[from] Unsupported),
- #[error("bad format version (must be a reasonable integer): {0}")]
+ #[error("bad format version: {0}")]
Other(&'static str),
}
#[error("{0}")] BadSubstitution(#[from] SubstError),
#[error("{0}")] UnsupportedColourSpec(#[from] UnsupportedColourSpec),
#[error("bad item name (invalid characters) in {0:?}")] BadItemName(String),
- #[error("{0:?}")] MaterialsFormatVersionError(#[from] MFVE),
+ #[error("{0}")] MaterialsFormatVersionError(#[from] MFVE),
#[error("group {group}: {error}")]
InGroup { group: String, error: Box<LLE> },