cli: Don't fail on `rad ls` if project is invalid
This commit is contained in:
parent
16560950ec
commit
73f3c49689
|
|
@ -122,7 +122,13 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
|
||||||
if !seeded && options.seeded {
|
if !seeded && options.seeded {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
let proj = doc.project()?;
|
let proj = match doc.project() {
|
||||||
|
Ok(p) => p,
|
||||||
|
Err(e) => {
|
||||||
|
log::error!(target: "cli", "Error loading project payload for {rid}: {e}");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
};
|
||||||
let head = term::format::oid(head).into();
|
let head = term::format::oid(head).into();
|
||||||
|
|
||||||
rows.push([
|
rows.push([
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue