add no_home_dir error
This commit is contained in:
parent
c91506f0c9
commit
42a43189fc
|
@ -20,6 +20,7 @@ pub enum SbotCliError {
|
|||
InvalidUtf8(Utf8Error),
|
||||
// external errors
|
||||
InvalidRegex(RegexError),
|
||||
NoHomeDir,
|
||||
}
|
||||
|
||||
impl error::Error for SbotCliError {}
|
||||
|
@ -57,6 +58,12 @@ impl fmt::Display for SbotCliError {
|
|||
SbotCliError::InvalidRegex(ref err) => {
|
||||
write!(f, "{}", err)
|
||||
}
|
||||
SbotCliError::NoHomeDir => {
|
||||
write!(
|
||||
f,
|
||||
"Error initialising sbotcli: no home directory could be determined"
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue