Files
xet-core/error_printer
Hoyt Koepke 4176674a7e Added lazy evaluation functionality to error printer. (#510)
Currently, the full message given to a function in error_printer must be
always created. This causes extra work when there are no errors if the
message should contain additional data.

This PR introduces `_fn` versions of the existing functions that call a
given function on demand to obtain the message. Thus `.warn_error_fn(||
format!("Error processing {context}"))` would only allocate and create
the error string when an error needs to be logged.
2025-09-29 11:23:39 -07:00
..