Skip to content
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

Array sort_custom should show a warning or error if the function doesn't exist. #22523

Closed
CowThing opened this issue Sep 28, 2018 · 1 comment · Fixed by #22737 or #45698
Closed

Array sort_custom should show a warning or error if the function doesn't exist. #22523

CowThing opened this issue Sep 28, 2018 · 1 comment · Fixed by #22737 or #45698

Comments

@CowThing
Copy link
Contributor

Godot version:
3.0 / 3.1

Issue description:
There should be a warning or error message when the sort_custom fails because of the function not existing, like in the example below. I had a misspelled function name and it took me a while to figure out why it wasn't sorting.

array.sort_custom(self, "non_existent_function")
@akien-mga
Copy link
Member

Reopening as #22737 had to be reverted for now due to #22833 (which is a consequence of this patch, but due to the other bug #22838).

@akien-mga akien-mga reopened this Oct 9, 2018
@akien-mga akien-mga modified the milestones: 3.1, 3.2 Dec 17, 2018
@akien-mga akien-mga modified the milestones: 3.2, 4.0 Nov 14, 2019
@akien-mga akien-mga assigned bojidar-bg and vnen and unassigned bojidar-bg and vnen Nov 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants