fallback instead of panicking

This commit is contained in:
kevin zhao
2025-11-10 23:06:27 -08:00
parent 00ff42d594
commit 8775a99e3d

View File

@@ -109,5 +109,5 @@ impl Rule {
fn join_command(command: &[String]) -> String {
try_join(command.iter().map(String::as_str))
.expect("failed to render command with shlex::try_join")
.unwrap_or_else(|_| "unable to render example".to_string())
}