use std::path::PathBuf;
pub type Result<T> = std::result::Result<T, Error>;
#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("failed to load index at {path}: {msg}")]
IndexLoad { path: PathBuf, msg: String },
#[error("failed to build index from {fasta}: {msg}")]
IndexBuild { fasta: PathBuf, msg: String },
#[error("invalid options: {0}")]
InvalidOpts(String),
#[error("invalid input: {0}")]
InvalidInput(String),
#[error("I/O: {0}")]
Io(#[from] std::io::Error),
}