Make ToGodot
and FromGodot
conversions use Result
#451
Labels
c: register
Register classes, functions and other symbols to GDScript
feature
Adds functionality to the library
In #421 we created a unified api for converting types across ffi. However every
ToGodot
conversion was assumed infallible, andFromGodot
usesOption<T>
to signal fallibility. This was to limit the scope of that PR, but means that error reporting isn't as good as it could be. It likely also meant a small regression is error messages.We should change these to use
Result
instead to be able to handle errors better and with better error messaging.The text was updated successfully, but these errors were encountered: