Skip to content

Add mention of common user error in Func_Ref

Rafał Mikrut requested to merge github/fork/krwolcott/patch-1 into master

Created by: krwolcott

When using Func_Ref, the most likely error would be misspelling the name of the target function. If this happens, the user is told that the "call_func" method doesn't exist within the "Func_Ref" class. The first likely place to look for information is the Func_Ref documentation, so I propose adding a line to the documentation of the "call_func" method explaining that the error most likely refers to a misspelling in the user's code rather than a bug in the engine.

The error message seems to be a result of how the "call_func" method is bound at runtime. So, while changing the error message would be more immediately useful to the user, it might involve changing more code than is warranted by what is really a fairly minor problem.

Merge request reports