bird 0.2.0

X API CLI with entity caching, search, threads, and watchlists
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Single permitted `eprintln!` survivor: the fatal-error chokepoint.
//!
//! Plan 2 U9's CI grep guard forbids `eprintln!` everywhere in `src/` except
//! this file (`src/error/fatal.rs`) and the binary shim (`src/main.rs`). The
//! tightly-scoped carve-out keeps the fatal error path inspectable and lets
//! future contributors add `eprintln!` here without inviting it elsewhere.

/// Write a single line to the process's real stderr.
///
/// Only call this from the fatal-error chokepoint (`BirdError::print()` or
/// the bare-error path in the runner). Every non-fatal diagnostic goes
/// through `OutputConfig::print_diag` against a runner-injected writer
/// instead, so test fixtures can capture them.
pub(crate) fn fatal_eprintln(line: &str) {
    eprintln!("{line}");
}