aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/run_test.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2016-06-10 16:23:00 +0800
committerPéter Szilágyi <peterke@gmail.com>2016-06-10 16:23:00 +0800
commit90e07b19abaa950eaaff2eecc4918b1d16ebbcaf (patch)
treec742c17da28dc67f41d9779eec0bc3427432e044 /cmd/geth/run_test.go
parent63d1d145e2b2c8db4106d87767842019492e0aea (diff)
downloaddexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar
dexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.gz
dexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.bz2
dexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.lz
dexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.xz
dexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.zst
dexon-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.zip
cmd: fix CLI package deprecation warnings
Diffstat (limited to 'cmd/geth/run_test.go')
-rw-r--r--cmd/geth/run_test.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/geth/run_test.go b/cmd/geth/run_test.go
index f6bc3f869..e26b4509a 100644
--- a/cmd/geth/run_test.go
+++ b/cmd/geth/run_test.go
@@ -58,7 +58,10 @@ type testgeth struct {
func init() {
// Run the app if we're the child process for runGeth.
if os.Getenv("GETH_TEST_CHILD") != "" {
- app.RunAndExitOnError()
+ if err := app.Run(os.Args); err != nil {
+ fmt.Fprintln(os.Stderr, err)
+ os.Exit(1)
+ }
os.Exit(0)
}
}