summaryrefslogtreecommitdiff
path: root/usr/austin/eval/stmt.go
diff options
context:
space:
mode:
Diffstat (limited to 'usr/austin/eval/stmt.go')
-rw-r--r--usr/austin/eval/stmt.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/austin/eval/stmt.go b/usr/austin/eval/stmt.go
index 4c90da0aa..b6e471dee 100644
--- a/usr/austin/eval/stmt.go
+++ b/usr/austin/eval/stmt.go
@@ -1281,8 +1281,8 @@ type Stmt struct {
f func (f *Frame);
}
-func (s *Stmt) Exec(f *Frame) {
- s.f(f);
+func (s *Stmt) Exec(f *Frame) os.Error {
+ return Try(func() {s.f(f)});
}
func CompileStmts(scope *Scope, stmts []ast.Stmt) (*Stmt, os.Error) {