Make error handler call error callback

Looks like a bit of copy and paste gone awry.