snipsco / snips-nlu-rs

Snips NLU rust implementation
https://snips.ai
Other
340 stars 56 forks source link

Improve error message in NLU example #15

Closed adrienball closed 6 years ago

adrienball commented 6 years ago

Description This PR improves the error message which appear when the example is run with a model file having a wrong model version.

Before:
'called `Result::unwrap()` on an `Err` value: ErrorMessage { msg: WrongModelVersion("0.12.0", "0.13.0") }'

After: 'Expected model version 0.13.0 but found 0.12.0'