mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-07-13 15:55:05 +00:00
Updated icon downloading
- Unicode websites could break (www.post.japanpost.jp for example). regex would fail because it was missing the unicode-perl feature. - Be less verbose in logging with icon downloads - Removed duplicate info/error messages - Added err_silent! macro to help with the less verbose error/info messages.
This commit is contained in:
parent
b4c95fb4ac
commit
9375d5b8c2
3 changed files with 20 additions and 8 deletions
|
@ -220,6 +220,15 @@ macro_rules! err {
|
|||
}};
|
||||
}
|
||||
|
||||
macro_rules! err_silent {
|
||||
($msg:expr) => {{
|
||||
return Err(crate::error::Error::new($msg, $msg));
|
||||
}};
|
||||
($usr_msg:expr, $log_value:expr) => {{
|
||||
return Err(crate::error::Error::new($usr_msg, $log_value));
|
||||
}};
|
||||
}
|
||||
|
||||
#[macro_export]
|
||||
macro_rules! err_code {
|
||||
($msg:expr, $err_code: expr) => {{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue