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

Method path_not_in_repo

atomic-core/src/record/error.rs:299–301  ·  view source on GitHub ↗

Create a new path-not-in-repo error. # Arguments `path` - The path that is outside the repository # Example ```rust use atomic_core::record::RecordError; let err = RecordError::path_not_in_repo("/outside/path"); assert!(matches!(err, RecordError::PathNotInRepo { .. })); ```

(path: impl Into<String>)

Source from the content-addressed store, hash-verified

297 /// assert!(matches!(err, RecordError::PathNotInRepo { .. }));
298 /// ```
299 pub fn path_not_in_repo(path: impl Into<String>) -> Self {
300 Self::PathNotInRepo { path: path.into() }
301 }
302
303 /// Create a new path-not-found error.
304 ///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected