better docs for error handler