fix(GODT-3100): fix issue where a fatal error that bubble up to cli.Run() is not written in the log file.

This commit is contained in:
Xavier Michelon
2023-11-02 14:17:35 +01:00
parent 6cb233473a
commit 0f320dbd80
2 changed files with 9 additions and 5 deletions

View File

@ -23,7 +23,6 @@ import (
"github.com/ProtonMail/proton-bridge/v3/internal/app"
"github.com/bradenaw/juniper/xslices"
"github.com/sirupsen/logrus"
)
/*
@ -44,7 +43,5 @@ import (
*/
func main() {
if err := app.New().Run(xslices.Filter(os.Args, func(arg string) bool { return !strings.Contains(arg, "-psn_") })); err != nil {
logrus.Fatal(err)
}
_ = app.New().Run(xslices.Filter(os.Args, func(arg string) bool { return !strings.Contains(arg, "-psn_") }))
}