mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
config: Improve logging of errors
Currently, the config package logs errors itself, in addition to returning them. That is confusing and results in some duplication of logging. This patch makes config just return errors, and adjusts the callers to log them properly.
This commit is contained in:
@@ -72,7 +72,7 @@ func main() {
|
||||
|
||||
conf, err := config.Load(*configDir + "/chasquid.conf")
|
||||
if err != nil {
|
||||
log.Fatalf("Error reading config: %v", err)
|
||||
log.Fatalf("Error loading config: %v", err)
|
||||
}
|
||||
config.LogConfig(conf)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user