aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth/misccmd.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/geth/misccmd.go')
-rw-r--r--cmd/geth/misccmd.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/geth/misccmd.go b/cmd/geth/misccmd.go
index 9cb161e1a..077f1ad11 100644
--- a/cmd/geth/misccmd.go
+++ b/cmd/geth/misccmd.go
@@ -28,7 +28,6 @@ import (
"github.com/ethereum/ethash"
"github.com/ethereum/go-ethereum/cmd/utils"
"github.com/ethereum/go-ethereum/eth"
- "github.com/ethereum/go-ethereum/log"
"github.com/ethereum/go-ethereum/params"
"gopkg.in/urfave/cli.v1"
)
@@ -69,7 +68,7 @@ The output of this command is supposed to be machine-readable.
func makedag(ctx *cli.Context) error {
args := ctx.Args()
wrongArgs := func() {
- log.Crit(fmt.Sprintf(`Usage: geth makedag <block number> <outputdir>`))
+ utils.Fatalf(`Usage: geth makedag <block number> <outputdir>`)
}
switch {
case len(args) == 2:
@@ -85,7 +84,7 @@ func makedag(ctx *cli.Context) error {
}
_, err = ioutil.ReadDir(dir)
if err != nil {
- log.Crit(fmt.Sprintf("Can't find dir"))
+ utils.Fatalf("Can't find dir")
}
fmt.Println("making DAG, this could take awhile...")
ethash.MakeDAG(blockNum, dir)