MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / fmt

Method fmt

atomic-core/src/output/repo/error.rs:301–311  ·  view source on GitHub ↗
(&self, f: &mut fmt::Formatter<'_>)

Source from the content-addressed store, hash-verified

299
300impl fmt::Display for OutputError {
301 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
302 match self {
303 Self::Io(err) => write!(f, "I/O error: {}", err),
304 Self::WorkingCopy(err) => write!(f, "Working copy error: {}", err),
305 Self::ChangeStore(err) => write!(f, "Change store error: {}", err),
306 Self::Graph(err) => write!(f, "Graph error: {}", err),
307 Self::Pristine(err) => write!(f, "Pristine error: {}", err),
308 Self::PathNotFound { path } => write!(f, "Path not found: {}", path),
309 Self::InodeNotFound { inode } => write!(f, "Inode not found: {:?}", inode),
310 }
311 }
312}
313
314impl std::error::Error for OutputError {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected