diff options
Diffstat (limited to 'ext/pty/lib/expect.rb')
-rw-r--r-- | ext/pty/lib/expect.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pty/lib/expect.rb b/ext/pty/lib/expect.rb index 50d2fbd363..52396d90bd 100644 --- a/ext/pty/lib/expect.rb +++ b/ext/pty/lib/expect.rb @@ -14,6 +14,8 @@ class IO e_pat = Regexp.new(Regexp.quote(pat)) when Regexp e_pat = pat + else + raise TypeError, "unsupported pattern class: #{pattern.class}" end while true if !IO.select([self],nil,nil,timeout) or eof? then |