Skip to main content

ipld_car/error/
loop_detected.rs

1use crate::car::BlockId;
2
3use std::path::PathBuf;
4
5#[cfg_attr(feature = "std", derive(Debug))]
6#[derive(thiserror::Error)]
7pub enum LoopDetectedErr {
8	#[error("There is a symlink loop on path {0:?}")]
9	Symlink(PathBuf),
10	#[error("Loop detected, block {0:?} needs to update a closed block {1:?}")]
11	OnRebuildAncestors(BlockId, BlockId),
12	#[error("Loop detected while writing CAR at block {0:?}")]
13	OnWrittingCar(BlockId),
14}