aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2024-02-12 11:04:29 +0100
committerRobin Jarry <robin@jarry.cc>2024-02-14 23:05:15 +0100
commitabfb20f1d62c511778f8ee811a3ff6a02e93a32f (patch)
treef7ddf1ec2801e7bc0be59b5994b8cc3d8e6009ed /main.go
parent2e5d9536412ddbb8d1a2bc71efe84040857b30a3 (diff)
downloadaerc-abfb20f1d62c511778f8ee811a3ff6a02e93a32f.tar.gz
config: improve styleset error reporting
Include the styleset filepath and exact statement that caused the error. Remove the "failed to load config: " prefix in the error message. The line is often very long already. Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 60cfbbd8..4cc8d203 100644
--- a/main.go
+++ b/main.go
@@ -173,7 +173,7 @@ func main() {
nil, opts.Accounts, opts.ConfAerc, opts.ConfBinds, opts.ConfAccounts,
)
if err != nil {
- die("failed to load config: %s", err)
+ die("%s", err)
}
log.Infof("Starting up version %s", log.BuildInfo)