doc update for error handling