Use plugin_error() instead of perror()

Signed-off-by: Davide Madrisan <davide.madrisan@gmail.com>