Errors from godot registration functions are not detected #1024
Labels
c: register
Register classes, functions and other symbols to GDScript
quality-of-life
No new functionality, but improves ergonomics/internals
I stumbled upon this here: #1019 (comment)
See also: godotengine/godot#101870
The issue is that in godot,
classdb_register_extension_class_method
returns void.If an error occurs, it just prints an error and returns:
https://github.com/godotengine/godot/blob/1b7b009674e05b566be11a5377b935f5d3d6c0ee/core/object/class_db.cpp#L1879-L1882
The macro
ERR_FAIL_MSG
ultimately calls_err_print_error
which prints to
stderr
and calls all handlers registered inerror_handler_list
.At the least for debug / CI, it would be great to register a handler, and fail CI if an error occurs.
The text was updated successfully, but these errors were encountered: