From fe6fb79f9cdbe67549697779fd0283352ce585bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Szil=C3=A1gyi?= Date: Sat, 29 Oct 2016 11:52:51 +0300 Subject: [PATCH] cmd/evm: fix compile and vet errors --- cmd/evm/main.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/evm/main.go b/cmd/evm/main.go index f06bbcfde4..7044694323 100644 --- a/cmd/evm/main.go +++ b/cmd/evm/main.go @@ -152,15 +152,15 @@ func run(ctx *cli.Context) error { var err error hexcode, err = ioutil.ReadFile(ctx.GlobalString(CodeFileFlag.Name)) if err != nil { - fmt.Println("Could not load code from file: %v", err) - os.exit(1) + fmt.Printf("Could not load code from file: %v\n", err) + os.Exit(1) } } else { var err error hexcode, err = ioutil.ReadAll(os.Stdin) if err != nil { - fmt.Println("Could not load code from stdin: %v", err) - os.exit(1) + fmt.Printf("Could not load code from stdin: %v\n", err) + os.Exit(1) } } code = common.Hex2Bytes(string(hexcode[:]))