Commit 9819b126 authored by David Johnson's avatar David Johnson

Give a better error when a server returns nil.

parent 044a2ca8
...@@ -291,7 +291,11 @@ sub CallMethodHTTP($$$) { ...@@ -291,7 +291,11 @@ sub CallMethodHTTP($$$) {
# Python servers seem to return faults in structs, not as <fault> elements. # Python servers seem to return faults in structs, not as <fault> elements.
# Sigh. # 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") || (ref($goo->value()) && UNIVERSAL::isa($goo->value(),"HASH")
&& exists($goo->value()->{'faultCode'}))) { && exists($goo->value()->{'faultCode'}))) {
$code = $goo->value()->{"faultCode"}->value; $code = $goo->value()->{"faultCode"}->value;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment