diff options
author | Paul Woolcock <paul@woolcock.us> | 2018-08-23 06:39:26 -0400 |
---|---|---|
committer | Paul Woolcock <paul@woolcock.us> | 2018-08-23 07:59:31 -0400 |
commit | 0f5e295ea97962fe96fa6f59e9a3541697984021 (patch) | |
tree | 091a24ccc4f00c5b55b8a8f16c8cc6801747f6c9 /src/errors.rs | |
parent | 3f7841da02f7a3e31fbdec09fa907b9c82f18878 (diff) |
Revamp registration & auth process
Diffstat (limited to 'src/errors.rs')
-rw-r--r-- | src/errors.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs index 104fee8..bae7fa3 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -39,6 +39,8 @@ pub enum Error { Server(StatusCode), /// MastodonBuilder error. DataMissing, + /// AppBuilder error + MissingField(&'static str), } impl fmt::Display for Error { @@ -66,6 +68,7 @@ impl error::Error for Error { Error::ClientSecretRequired => "ClientSecretRequired", Error::AccessTokenRequired => "AccessTokenRequired", Error::DataMissing => "DataMissing", + Error::MissingField(_) => "MissingField", } } } |