trace error controller