Chnged to use GetOp instead & added error + checking

This commit is contained in:
obscuren
2014-10-23 14:04:00 +02:00
parent 91c876831a
commit feef194829
4 changed files with 58 additions and 6 deletions

View File

@ -63,7 +63,7 @@ func RunVmTest(js string) (failed int) {
// When an error is returned it doesn't always mean the tests fails.
// Have to come up with some conditional failing mechanism.
if err != nil {
helper.Log.Infoln(err)
log.Println(err)
}
rexp := helper.FromHex(test.Out)
@ -96,6 +96,7 @@ func RunVmTest(js string) (failed int) {
}
func main() {
helper.Logger.SetLogLevel(5)
if len(os.Args) == 1 {
log.Fatalln("no json supplied")
}