diff options
author | Péter Szilágyi <peterke@gmail.com> | 2016-06-10 16:23:00 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2016-06-10 16:23:00 +0800 |
commit | 90e07b19abaa950eaaff2eecc4918b1d16ebbcaf (patch) | |
tree | c742c17da28dc67f41d9779eec0bc3427432e044 /cmd/geth/run_test.go | |
parent | 63d1d145e2b2c8db4106d87767842019492e0aea (diff) | |
download | go-tangerine-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar go-tangerine-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.gz go-tangerine-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.bz2 go-tangerine-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.lz go-tangerine-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.xz go-tangerine-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.tar.zst go-tangerine-90e07b19abaa950eaaff2eecc4918b1d16ebbcaf.zip |
cmd: fix CLI package deprecation warnings
Diffstat (limited to 'cmd/geth/run_test.go')
-rw-r--r-- | cmd/geth/run_test.go | 5 |
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) } } |