Closed adrienball closed 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") }'
'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'
'Expected model version 0.13.0 but found 0.12.0'
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'