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

Function repository_error

libatomic/src/daemon/state.rs:457–459  ·  view source on GitHub ↗

A domain result mapped to the contract's error vocabulary where the caller has no more specific mapping.

(error: atomic_repository::RepositoryError)

Source from the content-addressed store, hash-verified

455/// A domain result mapped to the contract's error vocabulary where the
456/// caller has no more specific mapping.
457pub fn repository_error(error: atomic_repository::RepositoryError) -> Status {
458 domain_status(ErrorCode::Repository, error.to_string())
459}
460
461/// A quick helper so handlers can echo hash bytes consistently.
462pub fn hash_bytes(hash: &atomic_core::types::Merkle) -> Vec<u8> {

Callers 15

preview_mutationMethod · 0.70
resolve_change_referenceFunction · 0.70
matches_canonical_entryFunction · 0.70
add_filesMethod · 0.70
move_fileMethod · 0.70
restoreMethod · 0.70
reviseMethod · 0.70
unrecordMethod · 0.70
view_errorFunction · 0.70
create_tag_errorFunction · 0.70
push_changes_implFunction · 0.70

Calls 1

domain_statusFunction · 0.85

Tested by

no test coverage detected