Skip to content

Commit

Permalink
Fix issue#20
Browse files Browse the repository at this point in the history
  • Loading branch information
Krusty/Benediction committed Nov 11, 2024
1 parent 39c6e46 commit eceb4f9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cpclib-runner/src/delegated.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,16 @@ impl<E: EventObserver> DelegateApplicationDescription<E> {
}

pub fn install(&self, o: &E) -> Result<(), String> {
self.inner_install(o)
.map_err(|e| {
let dest = self.cache_folder();
let _ = std::fs::remove_dir_all(dest); // ignore error
e
})

}

fn inner_install(&self, o: &E) -> Result<(), String> {
// get the file
let dest = self.cache_folder();

Expand Down

0 comments on commit eceb4f9

Please sign in to comment.