Clearer error for an invalid --layer (lists the valid values)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GLUwWE2KmFPzhKaf67tWbx
This commit is contained in:
Bendik Aagaard Lynghaug
2026-09-13 12:16:28 +02:00
co-authored by Claude Opus 4.8
parent 08e9470265
commit 95e44526f8
+1 -1
View File
@@ -118,7 +118,7 @@ pub fn parse_layer(s: &str) -> Result<Layer> {
"bottom" => Ok(Layer::Bottom), "bottom" => Ok(Layer::Bottom),
"top" => Ok(Layer::Top), "top" => Ok(Layer::Top),
"overlay" => Ok(Layer::Overlay), "overlay" => Ok(Layer::Overlay),
other => bail!("unknown layer: {}", other), other => bail!("unknown layer '{}' (valid: background, bottom, top, overlay)", other),
} }
} }