Keep the original error when recording it throws
recordError reads the error's message and constructor for the span. A
throwing getter there replaced the build or loader error the caller
rethrows. Record the failure status and let the original error through.