plugins: Better error message when failing to load development plugin

Fixes #2404