fix error formatting for plugin errors