diff --git a/cmd/ui.go b/cmd/ui.go index 5287afccd..ded0c14cb 100644 --- a/cmd/ui.go +++ b/cmd/ui.go @@ -3,7 +3,6 @@ package cmd import ( "embed" "fmt" - "log" "net/http" "os/exec" "regexp" @@ -15,7 +14,7 @@ import ( //go:embed control var uipath embed.FS -func openuri(uri string) { +func openuri(uri string) bool { var err error switch runtime.GOOS { @@ -29,9 +28,7 @@ func openuri(uri string) { err = fmt.Errorf("unsupported platform, open manually: %s", uri) } - if err != nil { - log.Fatal(err) - } + return err != nil } var UICmd = &cobra.Command{ diff --git a/config/config.go b/config/config.go index 7e4e69908..543adeade 100644 --- a/config/config.go +++ b/config/config.go @@ -23,7 +23,7 @@ func Init() { viper.SetDefault("storage.sqlite.db_name", "numary") viper.SetDefault("storage.postgres.conn_string", "postgresql://localhost/postgres") viper.SetDefault("server.http.bind_address", "localhost:3068") - viper.SetDefault("ledgers", []string{"quickstart"}) + viper.SetDefault("ledgers", []interface{}{"quickstart"}) viper.SetConfigName("numary") viper.SetConfigType("yaml")