attachments: Only write error attachment if custom methods are enabled