aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2015-03-12 06:41:51 +0800
committerFelix Lange <fjl@twurst.com>2015-03-12 06:43:27 +0800
commitd5aaf413e0307b07597e48a548f0219f4ea8c3be (patch)
tree08d6b802539aadd66fdd27236847de1f966318d2 /cmd
parentd7b5a87b3bc4a19677877d3a8c8c925211eb25f1 (diff)
downloadgo-tangerine-d5aaf413e0307b07597e48a548f0219f4ea8c3be.tar
go-tangerine-d5aaf413e0307b07597e48a548f0219f4ea8c3be.tar.gz
go-tangerine-d5aaf413e0307b07597e48a548f0219f4ea8c3be.tar.bz2
go-tangerine-d5aaf413e0307b07597e48a548f0219f4ea8c3be.tar.lz
go-tangerine-d5aaf413e0307b07597e48a548f0219f4ea8c3be.tar.xz
go-tangerine-d5aaf413e0307b07597e48a548f0219f4ea8c3be.tar.zst
go-tangerine-d5aaf413e0307b07597e48a548f0219f4ea8c3be.zip
cmd/ethereum: remove extra check for 'no accounts' error
This error can no longer be returned from eth.New.
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ethereum/main.go11
1 files changed, 2 insertions, 9 deletions
diff --git a/cmd/ethereum/main.go b/cmd/ethereum/main.go
index 0d239f7b4..8b01457e6 100644
--- a/cmd/ethereum/main.go
+++ b/cmd/ethereum/main.go
@@ -30,7 +30,6 @@ import (
"time"
"github.com/codegangsta/cli"
- "github.com/ethereum/go-ethereum/accounts"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/eth"
@@ -158,10 +157,7 @@ func run(ctx *cli.Context) {
fmt.Printf("Welcome to the FRONTIER\n")
utils.HandleInterrupt()
eth, err := utils.GetEthereum(ClientIdentifier, Version, ctx)
- if err == accounts.ErrNoKeys {
- utils.Fatalf(`No accounts configured.
-Please run 'ethereum account new' to create a new account.`)
- } else if err != nil {
+ if err != nil {
utils.Fatalf("%v", err)
}
@@ -172,10 +168,7 @@ Please run 'ethereum account new' to create a new account.`)
func runjs(ctx *cli.Context) {
eth, err := utils.GetEthereum(ClientIdentifier, Version, ctx)
- if err == accounts.ErrNoKeys {
- utils.Fatalf(`No accounts configured.
-Please run 'ethereum account new' to create a new account.`)
- } else if err != nil {
+ if err != nil {
utils.Fatalf("%v", err)
}