added error doc