iseatz/ruby-protocol-buffers — pull request #1 by manderson-iseatz (2012-02-01 16:41:46+00:00)
Title: Improved error messaging on decoder.rb exceptions

The intent of the decoder.rb code changes is to address two issues.

First, the stack trace on an TypeError or an ArgumentError does not
do a good job of locating the source of the error. The updated
code preserves the call trace of the orginal exception so a more
informative call stack can be presented.

Second, when proto buffers are nested, decode is called recursively.
The updated code will unwind the recursion and provide the nested
fields that lead to the fault.