adding error doc