doc: fix references to error keyword