error.rs
This file
Path
src/error.rs
9 lines · 244 bytes · Rust
Last changed by
Merge pull request #1976 from curious-rabbit/masterThayne McCombsbefore adoptionb126064
History of this fileTake it
The walk stopped after 200 commits: lines older than 0649c2b point at it.
Merge pull request #1976 from curious-rabbit/masterThayne McCombsbefore adoptionb126064
lines 1–4why, one step back1use std::io::IsTerminal;23use crate::sanitize::maybe_sanitize;4Merge pull request #1568 from sharkdp/dependabot/cargo/crossbeam-channel-0.5.13Thayne McCombsbefore adoption0649c2b
line 5why, one step back5pub fn print_error(msg: impl Into<String>) {Merge pull request #1976 from curious-rabbit/masterThayne McCombsbefore adoptionb126064
lines 6–8why, one step back6 let msg = msg.into();7 let safe = maybe_sanitize(&msg, std::io::stderr().is_terminal());8 eprintln!("[fd error]: {safe}");Merge pull request #1568 from sharkdp/dependabot/cargo/crossbeam-channel-0.5.13Thayne McCombsbefore adoption0649c2b
line 9why, one step back9}