Converted trace_error to macro, now tracking occurance file, function and line