zesterer / ariadne

A fancy diagnostics & error reporting crate
https://crates.io/crates/ariadne
MIT License
1.79k stars 78 forks source link

convert `ariadne::Report` to `String` #93

Closed LuckyTurtleDev closed 1 year ago

LuckyTurtleDev commented 1 year ago

I would like to make parse errors available over an admin api, so I need to convert ariadne::Report to string. But I see only a print() and eprint() function. How can I convert it to String? Is their any reason why ariadne::Report do not impl the std::fmt::Display trait?

zesterer commented 1 year ago

Going to close this one in favour of #94

LuckyTurtleDev commented 1 year ago

Sorry for the duplicate github gui was buggy. Luckily I have open just one duplicate :laughing: