mirror of
https://github.com/dani-garcia/vaultwarden.wiki.git
synced 2026-10-23 02:38:11 +03:00
Don't ignore errors while downloading icons
This commit is contained in:
1 parent
83da757dfb
commit
ea600ab2b8
1 file changed
+8
-2
+8
-2
@@ -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![]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user