Skip to content

Commit 9fdc0eb

Browse files
ericxtheodorejakub-freebit
authored andcommitted
cmd/geth: fix compatErr in initGenesis (ethereum#31746)
1 parent 58dea6e commit 9fdc0eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/geth/chaincmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ func initGenesis(ctx *cli.Context) error {
251251
utils.Fatalf("Failed to write genesis block: %v", err)
252252
}
253253
if compatErr != nil {
254-
utils.Fatalf("Failed to write chain config: %v", err)
254+
utils.Fatalf("Failed to write chain config: %v", compatErr)
255255
}
256256
log.Info("Successfully wrote genesis state", "database", "chaindata", "hash", hash)
257257

0 commit comments

Comments
 (0)