updated doc on error as last argument

That parameter is exist in the code before so left it as it is.