#[derive(Debug, thiserror::Error)]
pub enum Error {
#[error("No input")]
NoInput,
#[error("cannot read stdin")]
CannotReadStdIn,
#[error("cannot read file {0}")]
CannotReadFile(String),
#[error("cannot write file {0}")]
CannotWriteFile(String),
#[error("bad port file {0}")]
CannotParsePortFile(String),
#[error("cannot resolve the IP address for the domain {0}")]
DomainNotFound(String),
#[error("the nREPL server address not specified; try using the --port or --port-file option or ensure that there is a port file .nrepl-port in the current working directory or its ancestors")]
NotSpecified,
#[error("unknown error")]
Unknown,
#[error("")]
StdInConflict,
#[error("")]
BadStdIn,
#[error("")]
BadSourceFile,
#[error("template arguments must be utf-8")]
NonUtf8TemplateArgument,
#[error("non-positional template argument must be named")]
UnnamedNonPositionalTemplateArgument,
}