Revert "cmd/evm: change error msg output to stderr (#17118)"

This reverts commit fb9f7261ec.
This commit is contained in:
Péter Szilágyi
2018-08-01 19:09:08 +03:00
parent 46d4721519
commit 83e2761c3a
5 changed files with 22 additions and 23 deletions

View File

@ -30,11 +30,10 @@ func Compile(fn string, src []byte, debug bool) (string, error) {
bin, compileErrors := compiler.Compile()
if len(compileErrors) > 0 {
// report errors
errs := ""
for _, err := range compileErrors {
errs += fmt.Sprintf("%s:%v\n", fn, err)
fmt.Printf("%s:%v\n", fn, err)
}
return "", errors.New(errs + "compiling failed\n")
return "", errors.New("compiling failed")
}
return bin, nil
}