tree-tui 0.1.1

An interactive terminal UI for visualizing directories: code, size, and git stats.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Typed application errors. Used with `thiserror` inside modules; converted to
//! `color_eyre::Report` at the `main` boundary.

use std::path::PathBuf;

/// Errors surfaced to the user before/around the TUI.
#[derive(Debug, thiserror::Error)]
pub enum AppError {
    /// The target path does not exist.
    #[error("path does not exist: {0}")]
    NotFound(PathBuf),
    /// The target path exists but is not a directory.
    #[error("not a directory: {0}")]
    NotADirectory(PathBuf),
}