Add documentation regarding errors