aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/evm/internal
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/evm/internal')
-rw-r--r--cmd/evm/internal/compiler/compiler.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmd/evm/internal/compiler/compiler.go b/cmd/evm/internal/compiler/compiler.go
index 753ca6226..a2abc8f7d 100644
--- a/cmd/evm/internal/compiler/compiler.go
+++ b/cmd/evm/internal/compiler/compiler.go
@@ -30,10 +30,11 @@ 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 {
- fmt.Printf("%s:%v\n", fn, err)
+ errs += fmt.Sprintf("%s:%v\n", fn, err)
}
- return "", errors.New("compiling failed")
+ return "", errors.New(errs + "compiling failed\n")
}
return bin, nil
}