Add error location tracing