aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-01-13 15:18:55 +0800
committerRunxi Yu <me@runxiyu.org>2025-01-13 15:18:55 +0800
commit10c236e0b4aaefa2afeb44d38bb01a489bb26b15 (patch)
treeddeeec460536ad7af32fda7a54b5bf11427cc35e
parentLog EOF differently from other errors (diff)
downloadmaild-10c236e0b4aaefa2afeb44d38bb01a489bb26b15.tar.gz
maild-10c236e0b4aaefa2afeb44d38bb01a489bb26b15.tar.zst
maild-10c236e0b4aaefa2afeb44d38bb01a489bb26b15.zip
Fix config file error message
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index c3a2e16..4a4f242 100644
--- a/main.go
+++ b/main.go
@@ -16,7 +16,7 @@ func main() {
err := load_config(*config_path)
if err != nil {
- clog.Fatal(1, "Configuration file not found at "+*config_path)
+ clog.Fatal(1, "Error while loading configuration file: "+err.Error())
}
listener, err := net.Listen(config.MX.Net, config.MX.Addr)