aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
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/geth
parent7b2f25b57886133e3dd09f3ea0b0a7f188755965 (diff)
downloaddexon-6512b23b98de070f9b68fed4f1530f66dfea4b66.tar.gz
dexon-6512b23b98de070f9b68fed4f1530f66dfea4b66.tar.zst
dexon-6512b23b98de070f9b68fed4f1530f66dfea4b66.zip
cli: fatal error if rpc could not be started
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/main.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index a155e0a33..083d1c88a 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -354,7 +354,9 @@ func startEth(ctx *cli.Context, eth *eth.Ethereum) {
}
// Start auxiliary services if enabled.
if ctx.GlobalBool(utils.RPCEnabledFlag.Name) {
- utils.StartRPC(eth, ctx)
+ if err := utils.StartRPC(eth, ctx); err != nil {
+ utils.Fatalf("Error starting RPC: %v", err)
+ }
}
if ctx.GlobalBool(utils.MiningEnabledFlag.Name) {
eth.StartMining()