unnali/rouge — pull request #11 by Raynes (2012-10-27 07:48:27+00:00)
Title: Catch errors from the reader and print them.

I thought I'd take a shot at https://github.com/unnali/rouge/issues/8, but I should warn you, my Rubyfu is very weak. Don't worry about hurting my feelings if this is completely wrong!

I fixed the reader errors slipping through by adding another rescue around the read call that prints the error just like the other errors are printed. To keep from duplicating code, I put the reader code in a method.