chiark / gitweb /
MaterialsFormatVersionError: Improve messages
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 11 May 2022 20:44:36 +0000 (21:44 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 11 May 2022 23:19:17 +0000 (00:19 +0100)
commit962d5672f6dd1912b2e8db188b6137f02cecfda1
treeb0a4f4e603bfed6941a90b322336e27a67e2896a
parentb49f0e7d76bd63023426764621a5114486d127cb
MaterialsFormatVersionError: Improve messages

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>
src/materials-format.rs
src/shapelib.rs