Closed rossjones closed 5 months ago
[!IMPORTANT]
Auto Review Skipped
Auto reviews are disabled on this repository.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yaml
file in this repository.To trigger a single review, invoke the
@coderabbitai review
command.
Currently we try to reference the
ExportedFunction
which is documented as returning nil when the name is not found. Instead it returns a non-nil object with an inner nil field which will cause a panic whenCall
-ed.This commit instead looks up the function before referencing it to ensure it exists, returning an error early if not. This allows us to remove the call to recover which was handling the panic() for us.
Fixes #3753