cmd/ethereum: show more helpful message if no accounts exist

This commit is contained in:
Felix Lange
2015-03-10 15:44:05 +01:00
parent 9d4e1e8f8b
commit 0bb7377ebe
3 changed files with 23 additions and 9 deletions

View File

@ -95,7 +95,10 @@ func run(ctx *cli.Context) {
tstart := time.Now()
// TODO: show qml popup instead of exiting if initialization fails.
ethereum := utils.GetEthereum(ClientIdentifier, Version, ctx)
ethereum, err := utils.GetEthereum(ClientIdentifier, Version, ctx)
if err != nil {
utils.Fatalf("%v", err)
}
utils.StartRPC(ethereum, ctx)
go utils.StartEthereum(ethereum)
fmt.Println("initializing eth stack took", time.Since(tstart))