diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-10 22:44:05 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-10 22:44:05 +0800 |
commit | 0bb7377ebee69c3467c21d355dd24945d0becad5 (patch) | |
tree | b358540359800a9bdc0c312061d0557bd2a5609e /cmd/utils/flags.go | |
parent | 9d4e1e8f8bbdfa84937bcdcdc6b4ca4ba6cd79a2 (diff) | |
download | go-tangerine-0bb7377ebee69c3467c21d355dd24945d0becad5.tar go-tangerine-0bb7377ebee69c3467c21d355dd24945d0becad5.tar.gz go-tangerine-0bb7377ebee69c3467c21d355dd24945d0becad5.tar.bz2 go-tangerine-0bb7377ebee69c3467c21d355dd24945d0becad5.tar.lz go-tangerine-0bb7377ebee69c3467c21d355dd24945d0becad5.tar.xz go-tangerine-0bb7377ebee69c3467c21d355dd24945d0becad5.tar.zst go-tangerine-0bb7377ebee69c3467c21d355dd24945d0becad5.zip |
cmd/ethereum: show more helpful message if no accounts exist
Diffstat (limited to 'cmd/utils/flags.go')
-rw-r--r-- | cmd/utils/flags.go | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index cde5fa024..97d312dd4 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -157,8 +157,8 @@ func GetNodeKey(ctx *cli.Context) (key *ecdsa.PrivateKey) { return key } -func GetEthereum(clientID, version string, ctx *cli.Context) *eth.Ethereum { - ethereum, err := eth.New(ð.Config{ +func GetEthereum(clientID, version string, ctx *cli.Context) (*eth.Ethereum, error) { + return eth.New(ð.Config{ Name: p2p.MakeName(clientID, version), DataDir: ctx.GlobalString(DataDirFlag.Name), LogFile: ctx.GlobalString(LogFileFlag.Name), @@ -175,10 +175,6 @@ func GetEthereum(clientID, version string, ctx *cli.Context) *eth.Ethereum { Dial: true, BootNodes: ctx.GlobalString(BootnodesFlag.Name), }) - if err != nil { - exit(err) - } - return ethereum } func GetChain(ctx *cli.Context) (*core.ChainManager, ethutil.Database, ethutil.Database) { |