Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

error context

A message added to an error to say what the program was doing.

Error context wraps an error with a description of the failed operation ("reading config.toml"), so the report explains both what and why.

Loading interactive…

Examples

  • With anyhow, fs::read_to_string(path).with_context(|| format!("reading {path}"))? printed with {e:#} gives reading notes.txt: No such file or directory (os error 2).

Read the full section →