Skip to content

Commit

Permalink
Log asset download failure
Browse files Browse the repository at this point in the history
  • Loading branch information
terrarier2111 committed Mar 10, 2024
1 parent 48730f4 commit 58ea9f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/resources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@

extern crate leafish_resources as internal;

use log::warn;

use crate::paths;

use std::collections::HashMap;
Expand Down Expand Up @@ -385,6 +387,8 @@ impl Manager {
io::copy(&mut progress, &mut file).unwrap();
}
fs::rename(&tmp_file, &location).unwrap();
} else {
warn!("The asset {k} (hash: {hash}) could not be downloaded");
}
Self::add_task_progress(
&progress_info,
Expand Down

0 comments on commit 58ea9f9

Please sign in to comment.