Fix ERROR message in injection_point.c
authorMichael Paquier <michael@paquier.xyz>
Tue, 23 Jan 2024 01:45:00 +0000 (10:45 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 23 Jan 2024 01:45:00 +0000 (10:45 +0900)
commitcdd863480c27b406ac14e94f1fe122b98ea562b4
tree1fff1ef8364b7ef04e1856a795020873ecc9f3f9
parent0eb23285a2579591c09a591e5a52829f65665341
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.
src/backend/utils/misc/injection_point.c