mirror of
https://github.com/DNSCrypt/encrypted-dns-server.git
synced 2024-06-10 16:56:31 +02:00
We don't define any custom error types
This commit is contained in:
parent
66ac5d1fcb
commit
c0c66e6254
|
@ -1,16 +1 @@
|
|||
pub use failure::{bail, ensure, Error};
|
||||
use privdrop::PrivDropError;
|
||||
use std::io;
|
||||
use std::net::AddrParseError;
|
||||
|
||||
#[derive(Debug, Fail)]
|
||||
pub enum ProxyError {
|
||||
#[fail(display = "Internal error: [{}]", _0)]
|
||||
InternalError(String),
|
||||
#[fail(display = "I/O error: [{}]", _0)]
|
||||
Io(#[cause] io::Error),
|
||||
#[fail(display = "Unable to parse address: [{}]", _0)]
|
||||
AddrParseError(#[cause] AddrParseError),
|
||||
#[fail(display = "Privilege drop error: [{}]", _0)]
|
||||
PrivDrop(#[cause] PrivDropError),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue