You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by mc...@apache.org on 2013/12/03 21:40:26 UTC

svn commit: r1547580 - /qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/exception_handling.rb

Author: mcpierce
Date: Tue Dec  3 20:40:26 2013
New Revision: 1547580

URL: http://svn.apache.org/r1547580
Log:
NO-JIRA: Fixed Ruby check error to return anything > 0.

Modified:
    qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/exception_handling.rb

Modified: qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/exception_handling.rb
URL: http://svn.apache.org/viewvc/qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/exception_handling.rb?rev=1547580&r1=1547579&r2=1547580&view=diff
==============================================================================
--- qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/exception_handling.rb (original)
+++ qpid/proton/trunk/proton-c/bindings/ruby/lib/qpid_proton/exception_handling.rb Tue Dec  3 20:40:26 2013
@@ -29,8 +29,11 @@ module Qpid
       #
       # Expects the class to provide an +error+ method.
       def check_for_error(code)
+
         raise ::ArgumentError.new("Invalid error code: #{code}") if code.nil?
 
+	return code if code > 0
+
         case(code)
 
         when Qpid::Proton::Error::NONE



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org