add doc to view errors