aboutsummaryrefslogtreecommitdiffstats
path: root/core/vm/errors.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-06-12 19:35:14 +0800
committerobscuren <geffobscura@gmail.com>2015-06-12 19:35:14 +0800
commit287f99089181c1eaa6f25a6b531e476b631a201a (patch)
tree2e33a91f98c36fa17dcd836d4cd7b558d2b946b6 /core/vm/errors.go
parent02d629af8f63ca310c9419beba6d915592c43b25 (diff)
downloaddexon-287f99089181c1eaa6f25a6b531e476b631a201a.tar.gz
dexon-287f99089181c1eaa6f25a6b531e476b631a201a.tar.zst
dexon-287f99089181c1eaa6f25a6b531e476b631a201a.zip
core/vm: Improved error reporting for trace logging
Diffstat (limited to 'core/vm/errors.go')
-rw-r--r--core/vm/errors.go12
1 files changed, 3 insertions, 9 deletions
diff --git a/core/vm/errors.go b/core/vm/errors.go
index fc3459de0..799eb6797 100644
--- a/core/vm/errors.go
+++ b/core/vm/errors.go
@@ -2,20 +2,14 @@ package vm
import (
"fmt"
+
"github.com/ethereum/go-ethereum/params"
- "math/big"
)
-type OutOfGasError struct {
- req, has *big.Int
-}
-
-func OOG(req, has *big.Int) OutOfGasError {
- return OutOfGasError{req, has}
-}
+type OutOfGasError struct{}
func (self OutOfGasError) Error() string {
- return fmt.Sprintf("out of gas! require %v, have %v", self.req, self.has)
+ return "Out Of Gas"
}
func IsOOGErr(err error) bool {