setErrorReporter

Sets the reporter and returns the old one, the way upstream's setter does.