Trace an error.