From 21d8963928162e8a1fe62b39c87b3e4735b05dba Mon Sep 17 00:00:00 2001 From: Bence Ferdinandy Date: Sun, 8 Jan 2023 22:37:32 +0100 Subject: config: make styleset error message clearer When aerc fails to load a styleset it reports being unable to load the default styleset. Change error message to print the name of the styleset instead of default. Signed-off-by: Bence Ferdinandy Acked-by: Robin Jarry --- config/ui.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'config/ui.go') diff --git a/config/ui.go b/config/ui.go index 98b9f629..0994d993 100644 --- a/config/ui.go +++ b/config/ui.go @@ -464,7 +464,8 @@ func (ui *UIConfig) loadStyleSet(styleSetDirs []string) error { ui.style = NewStyleSet() err := ui.style.LoadStyleSet(ui.StyleSetName, styleSetDirs) if err != nil { - return fmt.Errorf("Unable to load default styleset: %w", err) + return fmt.Errorf("Unable to load %q styleset: %w", + ui.StyleSetName, err) } return nil -- cgit