Fix ERROR message in injection_point.c

Michael Paquier <michael@paquier.xyz>

Commit: cdd863480c27b406ac14e94f1fe122b98ea562b4
Author: Michael Paquier <michael@paquier.xyz>
Date: 2024-01-23T01:45:00Z
Releases: 17.0
Fix ERROR message in injection_point.c

This commit fixes an error message that failed to show the correct
function and library names when a function cannot be loaded.

While on it, adjust the call to load_external_function() so as this
ERROR can be reached, by making load_external_function() return NULL
rather than fail if a function cannot be found for a given injection
point.

Thinkos in d86d20f0ba79.

Files

PathChange+/−
src/backend/utils/misc/injection_point.c modified +2 −2