Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Don't fail on `rad ls` if project is invalid
cloudhead committed 1 year ago
commit 73f3c496892bdcf1e4d5ce5d4bf1ff6e77e712e2
parent 16560950ecfab3c8b9edf19db4cb4d665e8472ea
1 file changed +7 -1
modified radicle-cli/src/commands/ls.rs
@@ -122,7 +122,13 @@ pub fn run(options: Options, ctx: impl term::Context) -> anyhow::Result<()> {
        if !seeded && options.seeded {
            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();

        rows.push([