Fix a renamed function call in an error handler