From 95e44526f8bfd6516204be78b0527965ac6ad7c8 Mon Sep 17 00:00:00 2001 From: Bendik Aagaard Lynghaug Date: Sun, 13 Sep 2026 12:16:28 +0200 Subject: [PATCH] Clearer error for an invalid --layer (lists the valid values) Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_01GLUwWE2KmFPzhKaf67tWbx --- src/wayland.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wayland.rs b/src/wayland.rs index b00910b..3253d98 100644 --- a/src/wayland.rs +++ b/src/wayland.rs @@ -118,7 +118,7 @@ pub fn parse_layer(s: &str) -> Result { "bottom" => Ok(Layer::Bottom), "top" => Ok(Layer::Top), "overlay" => Ok(Layer::Overlay), - other => bail!("unknown layer: {}", other), + other => bail!("unknown layer '{}' (valid: background, bottom, top, overlay)", other), } }