mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-09-21 10:49:59 +03:00
Add errors definitions
This commit is contained in:
parent
09791e1035
commit
3e6ae8ac68
13
leo/errors/commands/login.rs
Normal file
13
leo/errors/commands/login.rs
Normal file
@ -0,0 +1,13 @@
|
||||
use std::ffi::OsString;
|
||||
|
||||
#[derive(Debug, Error)]
|
||||
pub enum LoginError {
|
||||
#[error("{:?}", _0)]
|
||||
CannotGetToken(OsString),
|
||||
|
||||
#[error("connectin unavalaible {:?}", _0)]
|
||||
ConnectionUnavalaible(OsString),
|
||||
|
||||
#[error("wrong login or password {:?}", _0)]
|
||||
WrongLoginOrPassword(OsString),
|
||||
}
|
Loading…
Reference in New Issue
Block a user