Fix C/P fail

The store executed the wrong hooks here, because of a C/P failure.

This fixes this bug.
This commit is contained in:
Matthias Beyer 2016-05-28 23:45:44 +02:00
parent 812379c46d
commit 64e28f3c31

View file

@ -361,7 +361,7 @@ impl Store {
})
.map(|e| FileLockEntry::new(self, e, id))
.and_then(|mut fle| {
self.execute_hooks_for_mut_file(self.pre_retrieve_aspects.clone(), &mut fle)
self.execute_hooks_for_mut_file(self.post_retrieve_aspects.clone(), &mut fle)
.map_err(|e| SE::new(SEK::HookExecutionError, Some(Box::new(e))))
.and(Ok(fle))
})