mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-09 03:20:56 +00:00
chore: docs
This commit is contained in:
parent
3f9a861f87
commit
b3e2b818c3
1 changed files with 3 additions and 2 deletions
|
|
@ -10,7 +10,8 @@ Prefer:
|
|||
|
||||
```rust
|
||||
.map_err(anyhow::Error::new)?;
|
||||
.with_context(|| "failed to fetch GitHub metadata")?;
|
||||
.context("failed to fetch GitHub metadata")?;
|
||||
.with_context(|| format!("failed to fetch GitHub metadata for {repo}"))?;
|
||||
?;
|
||||
```
|
||||
|
||||
|
|
@ -27,7 +28,7 @@ When adding context, use `context` / `with_context`; do not interpolate the sour
|
|||
|
||||
CLI/miette output, logs, and telemetry may render the full cause chain.
|
||||
|
||||
HTTP API responses must stay curated. Log the full internal chain, but return only a safe public message. Do not expose `format!("{err:#}")` in API JSON unless the endpoint explicitly chooses that surface.
|
||||
HTTP API responses must stay curated. Log the full internal chain, but return only a safe public message. Do not expose `format!("{err:#}")` in API JSON.
|
||||
|
||||
## Clone-bound storage
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue