record errors