author | Alberto Bertogli
<albertito@blitiri.com.ar> 2020-04-13 13:36:57 UTC |
committer | Alberto Bertogli
<albertito@blitiri.com.ar> 2020-04-14 11:01:01 UTC |
parent | 4802e2f3e4c1e09539963b6f45a2efe0da0df7aa |
chasquid.go | +4 | -1 |
diff --git a/chasquid.go b/chasquid.go index 1f35af8..ce3ae0a 100644 --- a/chasquid.go +++ b/chasquid.go @@ -81,7 +81,10 @@ func main() { // It also can be useful in unusual environments and for testing purposes, // where paths inside the configuration itself could be relative, and this // fixes the point of reference. - os.Chdir(*configDir) + err = os.Chdir(*configDir) + if err != nil { + log.Fatalf("Error changing to config dir %q: %v", *configDir, err) + } initMailLog(conf.MailLogPath)