handle errs in repo::get_inodes
Dependencies
- [2]
OQ6HSAWHshow record log - [3]
WI2BVQ6Jrm client lib crate - [4]
XHWLKCLDauto-scroll past skip sections on load - [5]
VJYEVHL5update libpijul - [6]
IFQPVMBDerror handling for repo actions - [7]
SWWE2R6Mdisplay basic repo stuff
Change contents
- replacement in libflorescence/src/repo.rs at line 1366
let inodes = get_inodes(&txn, &repo.path, &[]);let inodes = get_inodes(&txn, &repo.path, &[]).context("getting inodes")?; - replacement in libflorescence/src/repo.rs at line 1992
) -> Vec<(pijul::Inode,Option<pijul::pristine::Position<pijul::ChangeId>>,)> {) -> anyhow::Result<Vec<(pijul::Inode,Option<pijul::pristine::Position<pijul::ChangeId>>,)>,> { - replacement in libflorescence/src/repo.rs at line 2002
// return Err(Error::NotFound(pat.to_string()))todo!()bail!("Path {pat:?} not found {e:?}") - replacement in libflorescence/src/repo.rs at line 2004
Err(_e) =>// return Err(e.into()),{todo!()Err(e) => {bail!("Path {pat:?} error: {e:?}") - replacement in libflorescence/src/repo.rs at line 2014
Err(_) => {// return Err(Error::FilterPath {// pat: pat.to_string(),// canon_path,// repo_path: repo_path.to_path_buf(),// })todo!()Err(e) => {bail!("Strip path prefix failed with {e:?}") - replacement in libflorescence/src/repo.rs at line 2019
Ok(None) =>// return Err(Error::InvalidUtf8(pat.to_string())),{todo!()Ok(None) => {bail!("Invalid UTF8 {pat:?}") - replacement in libflorescence/src/repo.rs at line 2023
let inode = pijul::fs::find_inode(txn, s).expect("TODO");let inode = pijul::fs::find_inode(txn, s).with_context(|| format!("find inode {s:?}"))?; - replacement in libflorescence/src/repo.rs at line 2027
.expect("TODO");.with_context(|| format!("get inode position {s:?}"))?; - replacement in libflorescence/src/repo.rs at line 2032
inodesOk(inodes)