8000 make error messages much friendlier if a XMLRPC::FaultException is th… · ruby/ruby@f1587ee · GitHub
[go: up one dir, main page]

Skip to content

Commit f1587ee

Browse files
author
mneumann
committed
make error messages much friendlier if a XMLRPC::FaultException is thrown,
by aliasing message to faultString. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 69bed7f commit f1587ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/xmlrpc/parser.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ module XMLRPC
5454
class FaultException < StandardError
5555
attr_reader :faultCode, :faultString
5656

57+
alias message faultString
58+
5759
def initialize(faultCode, faultString)
5860
@faultCode = faultCode
5961
@faultString = faultString

0 commit comments

Comments
 (0)
0