GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.
feat(domain): improve error message for invalid bar component type
Lars Berger22d4b97ef464
diff --git a/GlazeWM.Domain/UserConfigs/BarComponentConfigConverter.cs b/GlazeWM.Domain/UserConfigs/BarComponentConfigConverter.csindex ed7b93ce..69457e0e 100644--- a/GlazeWM.Domain/UserConfigs/BarComponentConfigConverter.cs+++ b/GlazeWM.Domain/UserConfigs/BarComponentConfigConverter.cs@@ -19,7 +19,7 @@ namespace GlazeWM.Domain.UserConfigs{"workspaces" => new WorkspacesComponentConfig(),"clock" => new ClockComponentConfig(),- _ => throw new ArgumentException(),+ _ => throw new ArgumentException($"Invalid workspace type '{type}'."),};serializer.Populate(jObject.CreateReader(), target);