diff options
author | Daniel García <[email protected]> | 2018-07-01 15:27:42 +0200 |
---|---|---|
committer | Daniel García <[email protected]> | 2018-07-01 15:27:42 +0200 |
commit | ea600ab2b84a4881daba70655d8c7aead83eb8d7 (patch) | |
tree | b40765bd366787fb3003497609f28a9e927c0979 | |
parent | 83da757dfb3f4bdfb458b5cf61b5d2d630f87ef2 (diff) | |
download | vaultwarden-ea600ab2b84a4881daba70655d8c7aead83eb8d7.tar.gz vaultwarden-ea600ab2b84a4881daba70655d8c7aead83eb8d7.zip |
Don't ignore errors while downloading icons
-rw-r--r-- | src/api/icons.rs | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/api/icons.rs b/src/api/icons.rs index 6783d32b..a436c8e3 100644 --- a/src/api/icons.rs +++ b/src/api/icons.rs @@ -42,7 +42,10 @@ fn get_icon (domain: &str) -> Vec<u8> { save_icon(&path, &icon); icon }, - Err(_) => get_fallback_icon() + Err(e) => { + println!("Error downloading icon: {:?}", e); + get_fallback_icon() + } } } @@ -101,6 +104,9 @@ fn get_fallback_icon() -> Vec<u8> { save_icon(&path, &icon); icon }, - Err(_) => vec![] + Err(e) => { + println!("Error downloading fallback icon: {:?}", e); + vec![] + } } } |