From fb3826cee5a4c23cc1135523e267fc3801e8533a Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 16 May 2019 16:40:29 -0400 Subject: Revert "Abort if accounts.conf is world readable" This reverts commit a755608ef9d5893b68dc4c774bbda06503481552. --- aerc.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'aerc.go') diff --git a/aerc.go b/aerc.go index 3566895..f3607bb 100644 --- a/aerc.go +++ b/aerc.go @@ -1,7 +1,6 @@ package main import ( - "fmt" "io" "io/ioutil" "log" @@ -10,12 +9,12 @@ import ( "github.com/mattn/go-isatty" + "git.sr.ht/~sircmpwn/aerc2/config" "git.sr.ht/~sircmpwn/aerc2/commands" "git.sr.ht/~sircmpwn/aerc2/commands/account" "git.sr.ht/~sircmpwn/aerc2/commands/compose" "git.sr.ht/~sircmpwn/aerc2/commands/msgview" "git.sr.ht/~sircmpwn/aerc2/commands/terminal" - "git.sr.ht/~sircmpwn/aerc2/config" libui "git.sr.ht/~sircmpwn/aerc2/lib/ui" "git.sr.ht/~sircmpwn/aerc2/widgets" ) @@ -62,8 +61,7 @@ func main() { conf, err := config.LoadConfig(nil) if err != nil { - fmt.Printf("Failed to load config: %v\n", err) - os.Exit(1) + panic(err) } var ( @@ -75,7 +73,7 @@ func main() { for i, set := range cmds { err := set.ExecuteCommand(aerc, cmd) if _, ok := err.(commands.NoSuchCommand); ok { - if i == len(cmds)-1 { + if i == len(cmds) - 1 { return err } else { continue -- cgit v1.2.3