Error controller updated