Skip to content

Commit

Permalink
remove panic
Browse files Browse the repository at this point in the history
  • Loading branch information
lumtis committed Aug 7, 2023
1 parent 77f3639 commit c986986
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/zetacored/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package main

import (
"errors"
"fmt"
"io"
"os"
"path/filepath"
Expand Down Expand Up @@ -144,7 +145,7 @@ func initRootCmd(rootCmd *cobra.Command, encodingConfig appparams.EncodingConfig

// replace the default hd-path for the key add command
if err := SetEthereumHDPath(rootCmd); err != nil {
panic(err)
fmt.Printf("warning: unable to set default HD path: %v\n", err)
}

rootCmd.AddCommand(server.RosettaCommand(encodingConfig.InterfaceRegistry, encodingConfig.Codec))
Expand Down

0 comments on commit c986986

Please sign in to comment.