amazon-ion / ion-schema-rust

Rust implementation of Ion Schema
https://amazon-ion.github.io/ion-schema/sandbox
Apache License 2.0
12 stars 6 forks source link

Fix error message for unsupported ISL version #119

Closed popematt closed 1 year ago

popematt commented 1 year ago

Issue #, if available:

None

Description of changes:

When I was testing something out with ion-schema-rust, I saw that the error message said "Unsupported Ion Schema version: ${it.stringValue()}"—this changes it to use format! instead of Kotlin string interpolation so that the message will be like "Unsupported Ion Schema version: $ion_schema_0_1"

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.