Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRusterror handling thiserror anyhowSingle-choice MCQ

Using anyhow, what does the `.context(...)` method (from the `Context` trait) do to a `Result`?

use anyhow::Context; let data = std::fs::read("config.toml") .context("failed to read config.toml")?;