anyhow

A Rust library for error handling.

For libraries, see thiserror.

Using Raw Strings

https://docs.rs/anyhow/latest/anyhow/macro.anyhow.html

fn func() -> Result<()> {
  Err(anyhow!("Error message"))
}