Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-stable
Commits
9819b126
Commit
9819b126
authored
Jul 19, 2007
by
David Johnson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give a better error when a server returns nil.
parent
044a2ca8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
xmlrpc/libxmlrpc.pm.in
xmlrpc/libxmlrpc.pm.in
+5
-1
No files found.
xmlrpc/libxmlrpc.pm.in
View file @
9819b126
...
...
@@ -291,7 +291,11 @@ sub CallMethodHTTP($$$) {
#
Python
servers
seem
to
return
faults
in
structs
,
not
as
<
fault
>
elements
.
#
Sigh
.
if
($
goo
->
value
()->
is_fault
()
if
(
!ref($goo)) {
print
STDERR
"Error in XMLRPC parse: $goo
\n
"
;
return
undef
;
}
elsif
($
goo
->
value
()->
is_fault
()
||
(
ref
($
goo
->
value
())
&&
UNIVERSAL
::
isa
($
goo
->
value
(),
"HASH"
)
&&
exists
($
goo
->
value
()->{
'faultCode'
})))
{
$
code
=
$
goo
->
value
()->{
"faultCode"
}->
value
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment