Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
REVIEW: Change message to better fit output
Lorenz Leutgeb committed 7 months ago
commit 32b7ee9d2ac31868384bd32a6e733c436d3b66b8
parent 4b1b0054bea2c48c41a7abdf2fea97a9ef41feb4
1 file changed +2 -2
modified crates/radicle-node/src/main.rs
@@ -34,14 +34,14 @@ enum LogFormat {
}

impl FromStr for LogFormat {
-
    type Err = String;
+
    type Err = &'static str;

    fn from_str(s: &str) -> Result<Self, Self::Err> {
        match s {
            #[cfg(feature = "structured-logger")]
            "json" => Ok(LogFormat::Json),
            "radicle" => Ok(LogFormat::Radicle),
-
            _ => Err(format!("Invalid log format: {s}")),
+
            _ => Err("unknown log format"),
        }
    }
}