aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-04-22 07:47:17 +0800
committerzelig <viktor.tron@gmail.com>2015-04-24 19:45:11 +0800
commit6512b23b98de070f9b68fed4f1530f66dfea4b66 (patch)
tree217d76c978b3015f303293a10ae43b69b2fcc90c /cmd/utils
parent7b2f25b57886133e3dd09f3ea0b0a7f188755965 (diff)
downloaddexon-6512b23b98de070f9b68fed4f1530f66dfea4b66.tar
dexon-6512b23b98de070f9b68fed4f1530f66dfea4b66.tar.gz
dexon-6512b23b98de070f9b68fed4f1530f66dfea4b66.tar.bz2
dexon-6512b23b98de070f9b68fed4f1530f66dfea4b66.tar.lz
dexon-6512b23b98de070f9b68fed4f1530f66dfea4b66.tar.xz
dexon-6512b23b98de070f9b68fed4f1530f66dfea4b66.tar.zst
dexon-6512b23b98de070f9b68fed4f1530f66dfea4b66.zip
cli: fatal error if rpc could not be started
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/flags.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 78d9c7afd..53e2694c5 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -330,7 +330,7 @@ func GetAccountManager(ctx *cli.Context) *accounts.Manager {
return accounts.NewManager(ks)
}
-func StartRPC(eth *eth.Ethereum, ctx *cli.Context) {
+func StartRPC(eth *eth.Ethereum, ctx *cli.Context) error {
config := rpc.RpcConfig{
ListenAddress: ctx.GlobalString(RPCListenAddrFlag.Name),
ListenPort: uint(ctx.GlobalInt(RPCPortFlag.Name)),
@@ -338,7 +338,7 @@ func StartRPC(eth *eth.Ethereum, ctx *cli.Context) {
}
xeth := xeth.New(eth, nil)
- _ = rpc.Start(xeth, config)
+ return rpc.Start(xeth, config)
}
func StartPProf(ctx *cli.Context) {