Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-dambovaliev committed Nov 22, 2024
1 parent 90f4b53 commit d87affc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions gnovm/pkg/gnolang/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -1288,13 +1288,7 @@ func (m *Machine) Run() {
if r != nil {
switch r := r.(type) {
case *Exception:
panicStmt := &PanicStmt{
Exception: &BasicLitExpr{Value: `"` + r.Sprint(m) + `"`, Kind: STRING},
}

m.PushStmt(panicStmt)
m.PushOp(OpExec)

m.Panic(r.Value)
m.Run()
default:
panic(r)
Expand Down

0 comments on commit d87affc

Please sign in to comment.