Merge pull request #573 from matthiasbeyer/imag-view/replace-retrieve-with-get
imag-view: Use get() instead of retrieve()
This commit is contained in:
commit
0d3aa9bcf9
1 changed files with 6 additions and 2 deletions
|
@ -55,8 +55,12 @@ fn main() {
|
||||||
Some(s) => s,
|
Some(s) => s,
|
||||||
};
|
};
|
||||||
|
|
||||||
let entry = match rt.store().retrieve(PathBuf::from(entry_id)) {
|
let entry = match rt.store().get(PathBuf::from(entry_id)) {
|
||||||
Ok(fle) => fle,
|
Ok(Some(fle)) => fle,
|
||||||
|
Ok(None) => {
|
||||||
|
error!("Cannot get {}, there is no such id in the store", entry_id);
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
Err(e) => {
|
Err(e) => {
|
||||||
trace_error(&e);
|
trace_error(&e);
|
||||||
exit(1); // we can afford not-executing destructors here
|
exit(1); // we can afford not-executing destructors here
|
||||||
|
|
Loading…
Reference in a new issue