diff options
author | Bence Ferdinandy <bence@ferdinandy.com> | 2023-01-08 22:37:32 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-01-10 21:48:22 +0100 |
commit | 21d8963928162e8a1fe62b39c87b3e4735b05dba (patch) | |
tree | 90bc6612b0ba4a00661b7bf1bcd4f5986e69ccf7 /config/ui.go | |
parent | 89681ba1f2b9316de4d3305c37ef59f9c5f34793 (diff) | |
download | aerc-21d8963928162e8a1fe62b39c87b3e4735b05dba.tar.gz |
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 <bence@ferdinandy.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'config/ui.go')
-rw-r--r-- | config/ui.go | 3 |
1 files changed, 2 insertions, 1 deletions
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 |