aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/evm/internal
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2018-08-02 00:09:08 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-08-02 00:09:08 +0800
commit83e2761c3a13524bd5d6597ac08994488cf872ef (patch)
treea9cb744cf357651f38163005cba14793bfc95720 /cmd/evm/internal
parent46d4721519f80074795a0631f5bab875433a1cc6 (diff)
downloadgo-tangerine-83e2761c3a13524bd5d6597ac08994488cf872ef.tar
go-tangerine-83e2761c3a13524bd5d6597ac08994488cf872ef.tar.gz
go-tangerine-83e2761c3a13524bd5d6597ac08994488cf872ef.tar.bz2
go-tangerine-83e2761c3a13524bd5d6597ac08994488cf872ef.tar.lz
go-tangerine-83e2761c3a13524bd5d6597ac08994488cf872ef.tar.xz
go-tangerine-83e2761c3a13524bd5d6597ac08994488cf872ef.tar.zst
go-tangerine-83e2761c3a13524bd5d6597ac08994488cf872ef.zip
Revert "cmd/evm: change error msg output to stderr (#17118)"
This reverts commit fb9f7261ec51e38eedb454594fc19f00de1a6834.
Diffstat (limited to 'cmd/evm/internal')
-rw-r--r--cmd/evm/internal/compiler/compiler.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/evm/internal/compiler/compiler.go b/cmd/evm/internal/compiler/compiler.go
index a2abc8f7d..753ca6226 100644
--- a/cmd/evm/internal/compiler/compiler.go
+++ b/cmd/evm/internal/compiler/compiler.go
@@ -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
}