update the error controller to catch router errors as well.