-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json config files not using strings get hard to understand execption #74
Comments
We can fix the exception to be more useful. It's unfortunate that we can't use the types in things like json and edn very well, OLCUT is extremely lazy so we avoid anything that looks like type checking until the user wants to instantiate an object, and I worry that if we loaded things in with types then converted to strings and then back out to numerical types we might not get exactly the same things (e.g. if we went through float when the target type was double). |
Something like this?
|
Huh, I'd added a sensible exception for property maps when I added JSON support, but not for property lists or properties. That's a straightforward fix. |
Thank you! |
a config file like:
throws an exception like:
because maxDepth is not given as a String, but as a number.
which is not very helpfull for a user to find an error in this config file
The text was updated successfully, but these errors were encountered: