error controller also logs errors; just in case the error was not logged along the way