oxen-cli 0.48.3

Oxen is a fast, unstructured data version control, to help version large machine learning datasets written in Rust.
1
2
3
4
5
6
7
8
9
10
11
use colored::Colorize;
use liboxen::error::OxenError;

/// Print an OxenError to stderr with colored prefix and optional hints.
pub fn print_error(err: &OxenError) {
    eprintln!("{} {}", "Error:".red().bold(), err);

    if let Some(hint) = err.hint() {
        eprintln!("  {} {}", "hint:".cyan().bold(), hint);
    }
}