cmd/evm: fix compile and vet errors

This commit is contained in:
Péter Szilágyi 2016-10-29 11:52:51 +03:00
parent 9a4608b5d3
commit fe6fb79f9c
No known key found for this signature in database
GPG key ID: 119A76381CCB7DD2

View file

@ -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[:]))