zesterer / ariadne

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

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

Closed LuckyTurtleDev closed 11 months ago

LuckyTurtleDev commented 11 months 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 11 months ago

Going to close this one in favour of #94

LuckyTurtleDev commented 11 months ago

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