Add trace on error state