diff options
author | obscuren <geffobscura@gmail.com> | 2015-06-12 19:35:14 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-06-12 19:35:14 +0800 |
commit | 287f99089181c1eaa6f25a6b531e476b631a201a (patch) | |
tree | 2e33a91f98c36fa17dcd836d4cd7b558d2b946b6 /core/vm/errors.go | |
parent | 02d629af8f63ca310c9419beba6d915592c43b25 (diff) | |
download | dexon-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.go | 12 |
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 { |