document errors