Closed han1548772930 closed 6 months ago
Hi,
That is a good suggestion. I'll add that.
It would look something like this:
use rust_xlsxwriter::XlsxError;
fn main() -> Result<(), XlsxError> {
Err(XlsxError:: CustomError("Some custom error message".to_string()))
}
With output:
Error: CustomError("Some custom error message")
Is that what you are looking for?
Yes this looks great thank you
I've added a XlsxError::CustomError(String)
enum to main. It will be in the next release (v0.61.0).
This is now upstream in the v0.61.0 crate.
Feature Request
XlsxError::form_str("custom XlsxError")