src/plugin.c: Improve error messages in plugin_load().

Fixes Github issue #237.