Made error fields exported