1 2 3 4 5 6 7 8 9
//! Custom error types for deadbranch use thiserror::Error; #[derive(Error, Debug)] pub enum DeadbranchError { #[error("Branch '{0}' has unmerged changes. Use --force to delete anyway")] UnmergedBranch(String), }