diff options
Diffstat (limited to 'sample')
| -rw-r--r-- | sample/eval.rb | 2 | ||||
| -rw-r--r-- | sample/mkproto.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sample/eval.rb b/sample/eval.rb index 216bf8ca3..b9a54df34 100644 --- a/sample/eval.rb +++ b/sample/eval.rb @@ -31,7 +31,7 @@ while TRUE end begin print eval(line).inspect, "\n" - rescue + rescue ScriptError, StandardError $! = 'exception raised' unless $! print "ERR: ", $!, "\n" end diff --git a/sample/mkproto.rb b/sample/mkproto.rb index 866124008..3423a1590 100644 --- a/sample/mkproto.rb +++ b/sample/mkproto.rb @@ -14,7 +14,7 @@ while gets() else type = "" end - while arg.sub!(/(\** *[\w\d_]+)(,|$)/, "") + while arg.sub!(/(\** *[\w\d_]+)(,|$)/, "") && $~ args.push type + " " + $1.strip end else |
