diff options
author | BlackDex <[email protected]> | 2020-09-14 20:47:46 +0200 |
---|---|---|
committer | BlackDex <[email protected]> | 2020-09-14 20:47:46 +0200 |
commit | 6a0d024c69dc6c0a060191085f66c5dc25f1426e (patch) | |
tree | 559fae478ea2ef1df538e4491bc1ade45a4192d4 /src/error.rs | |
parent | d69968313b7e41e9c6020ca1f46413e58daee44e (diff) | |
download | vaultwarden-6a0d024c69dc6c0a060191085f66c5dc25f1426e.tar.gz vaultwarden-6a0d024c69dc6c0a060191085f66c5dc25f1426e.zip |
Format some common Lettre errors a bit simpler
Currently when for example using the admin interface to send out a test e-mail just
returns `SmtpError`. This is not very helpful. What i have done.
- Match some common Lettre errors to return the error message.
- Other errors will just be passed on as before.
Some small other changes:
- Fixed a clippy warning about using clone().
- Fixed a typo where Lettere was spelled with one t.
Diffstat (limited to 'src/error.rs')
-rw-r--r-- | src/error.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/error.rs b/src/error.rs index 71ec8a61..fd5f1805 100644 --- a/src/error.rs +++ b/src/error.rs @@ -79,7 +79,7 @@ make_error! { RegexError(RegexErr): _has_source, _api_error, YubiError(YubiErr): _has_source, _api_error, - LetreError(LettreErr): _has_source, _api_error, + LettreError(LettreErr): _has_source, _api_error, AddressError(AddrErr): _has_source, _api_error, SmtpError(SmtpErr): _has_source, _api_error, FromStrError(FromStrErr): _has_source, _api_error, |